width Returns the width of the current document in pixels. Syntax wdth = document.width Parameters wdth is the width in pixels. Example function init() { alert(document.width - 100); } Notes extra information Specification width
Returns the width of the current document in pixels.
wdth = document.width
wdth is the width in pixels.
function init() { alert(document.width - 100); }
extra information
width