Forum Moderators: open
scrollTopis one that comes to mind: in strict mode, it no longer belongs to
bodybut becomes a property of the
documentElementelement. Try this to see it in action in different modes:
alert(document.body.scrollTop);
alert(document.documentElement.scrollTop);
(make sure there is a scrollbar...)
Edit: this also applies to
scrollLeft, offsetWidth, offsetHeightand probably a few more.
[edited by: RonPK at 12:42 pm (utc) on Oct. 9, 2006]