width Property

Internet Development Index

Retrieves the horizontal resolution of the screen.

Syntax

[ iWidth = ] screen.width

Possible Values

iWidthInteger that receives the horizontal resolution, in pixels.

The property is read-only. The property has no default value.

Standards Information

This property is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

screen

See Also

availWidth, height