Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
11-30-2006, 09:15 PM #1
- Join Date
- Nov 2006
- Thanked 0 Times in 0 Posts
Printing with a Dynamically Sized Iframe?
I'm designing a site that uses a navigation bar and an iframe to hold the content. The iframe dynamically resizes when a page is loaded into it, to avoid the need for a vertical scrollbar, using this code: http://www.dynamicdrive.com/dynamici...iframessi2.htm. The problem is, when File > Print is selected, if the main page (containing the navigation bar) has focus, it will print the nav bar alone without the content of the iframe. I'm aware that I can print the contents of the iframe by giving it focus() and then using print() or some other method, but I'm afraid this still may be confusing to my users. Does anyone know how I can force the contents of this dynamic iframe to be printed when the main page has focus?