[RESOLVED] function works in FF but not IE
This function works fine in FF but doesn't do anything in IE (no errors either)...any ideas why?
code use non-standard property like document.width
so what would be a cross-browser way of finding the window's width?
you can't determine the width or height of the window per se. however, you can read the width or height of browser's canvas (the area where web content are rendered). using standard method would require you to double the code specially for msie browsers. so, the short version, which i think isn't standard but work on msie and fx (had not tried on webkit engine). document.documentElement.scrollWidth and scrollHeight.
Users Browsing this Thread
There are currently 1 users browsing this thread. (0 members and 1 guests)