Home › Forums › JavaScript › IE 9 / FireFox – jQuery issue, Seems simple enough… › Re: IE 9 / FireFox – jQuery issue, Seems simple enough…
June 26, 2012 at 6:34 pm
#104909
Member
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.