I have a page in a frameset (example topFrame, mainFrame, bottomFrame) but I only wanted to print mainFrame. I am using window.print command to print the specified frame but it's not printing the whole contents of the frame. It only prints what is visible in the layout.