Posts Tagged ‘javscript’

Iframe juggling (how to resize iframe to match content)

Monday, June 16th, 2008

You can love or hate iframes, but they have their uses.
I have to use them from time to time, as a last resort. And when i use them, i want the user experience to be the same, as if there were no iframe.

There is a couple of problems with using iframe.
1. Iframe isn't a legal tag in xhtml strict.
2. Iframe height/width doesn't resize to match its content.
3. While navigating inside an iframe, you can't use the browsers back, forward or refresh buttons.
(more...)