views:

25

answers:

1

Hey All,

I'm measuring the window and document width and height via the following properties :

//measure the window and document height and width dynamically    
var w = $(window).width();
var h = $(window).height();
var wd = $(document).width();
var hd = $(document).height();

Works fine in firefox but IE kicks up a fuss. Is there an alternative to this syntax that works in IE?
JS error recieved - could not get the position property. Invalid Argument

A: 

Works for me in both FF and IE, check for yourself here.

Sarfraz
Same. Works in Chrome as well. My guess is the code that's actually failing is elsewhere.
Matt Ball