Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript IE 9 / FireFox – jQuery issue, Seems simple enough… Re: IE 9 / FireFox – jQuery issue, Seems simple enough…

#104909

This doesn’t have anything to do with IE “sucking arse.” document.height is non-standard and obsolete. If you want to use raw JavaScript, you should check document.documentElement.clientHeight , which works in all major browsers, including IE.

Since you’re using jQuery though, just utilize it to determine the height of the document.

var halfScreen = $(document).height() / 2;

Nice effect by the way.