I've got a problem that I hope someone here can help me with. I'm showing a page from another site in an IFrame/ILayer. The included page lets the parent know its dimensions by calling a function from the parent with its height and width as parameters. This works fine in IE (using document.body.scrollHeight,document.body.scrollWidth). I tried using document.body.offSetHeight/Width for NN6, but although the height was acceptable, the width was way off. Any suggestions?
I tried using document.width (which gives me the same value as document.body.offsetWidth) and window.innerWidth which gives me the same value plus 16. The funny thing is that it is giving me the value of the width of the iframe and not itself. IE's scrollWidth gives me the correct width plus 20 (scrollbar width?) only if it is >= the width of the iframe, otherwise it gives me the width of the iframe like NS6. It seems that NS6 only looks at the container when it comes to width.
BTW I'm impressed with your work at Cross-Browser.