document.width - IE Bug
internet-explorer-8, javascript, jquery
Solution
Just use `$(window).width()` & `$(window).height()` (demo).
Problem
I am trying to set the width and height of a mask behind a modal window. I am using `$(document).width()` and `$(document).height()`. Works great in FF and Chrome but IE adds about 25px to each and I end up with scroll bars? What am I supposed to use that is cross browser compatible? I am using IE8 btw, but I want it to work down to 6 or 7.