width property (document)
Retrieves the width of the browser window's client area.
You can find the related objects in the Supported by objects section below.
This property is read-only.
Integer that sets or retrieves the width of the document, in pixels.
Default: this property has no default value.
Example HTML code 1:
This example illustrates the use of the width property:
Did you find this example helpful?
User Contributed Comments