The current width of the document measured in pixels. This value constantly changes as the document content is rendered into the page. You can measure this value during document loading and then measure it later to find the page has grown in size.
On MSIE, this property is not supported and you need to do a little work to access the appropriate Element object properties of the body object.
This is not supported by MSIE, however you could use the document.body.offsetWidth property instead.
This value can be read by an unsigned script in another window.
See also: | Document object, Document.height |
Prev | Home | Next |
Document.vlinkColor | Up | Document.write() |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |