I have an assignement to make a website that's compatible to both IE and FF. Because I am using an iFrame in a DIV, I use the following script to make sure the iFrame get's the right size:
window.onload = function() {
var iframe = parent.document.getElementsByTagName('iframe')[0];
var h = document.body.offsetHeight + 200;
iframe.height = h;
}
I also use a CSS stylesheet, where all the properties of my iFrame are stored. One of those properties is 'border', it's set to '0' and this works fine in FF but not in IE. So after some research I found out, IE doesn't support this, so I added 'frameborder="0"' to the HTML code. The borders are gone but now my JS is not working anymore in both browsers.
A little help on this weird item is wanted
Arne
Enter your message below
Sign in or Join us (it's free).