Forum Moderators: open
I wannt to make it work on as most browsers as possible. The code I am using does not work on IE 5 and Mac IE. Can I make it work. Does resizing of I-frames work in those browsers?
Where does work and where it doesen't?
Is there a good resource site where I can learn about resizing i-frame according to the content that is loaded into it.
Thanx
However, IE 5.5 at least should be doable. What is the core of your approach? What seems to fall apart on the browsers and platforms you mention?
[edited by: tedster at 3:32 am (utc) on June 28, 2003]
function setHeight()
{
var body = yourIframeName.document.body
var frame = document.all("yourIframeName")
frame.style.height = body.scrollHeight +
(body.offsetHeight -
body.clientHeight)
} works if you include it on the "mother" page, your iframe has a name you know, and you can add a call to the function on every other page's "onLoad" using document.parent.setHeight()