« Gecko DOM Reference
Summary
Returns the width of the body element of the current document in pixels.
Not supported by IE.
Syntax
pixels = document.width;
Example
function init() {
alert("The width of the document is " + document.width + " pixels.");
}
Specification
DOM Level 0. Not part of any standard.