Private archive copy · Unofficial site · Content copyright belongs to Runoob Tutorial and the original authors · View Original

Screen availWidth Property

Screen availWidth Property

Screen Object Reference Screen object


Definition and Usage

The availWidth property declares the available width of the screen that displays the browser, in pixels. In operating systems such as Windows, this available height does not include the vertical space allocated to semi-permanent features (such as the taskbar at the bottom of the screen).

Syntax

screen.availWidth


Browser support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support the availWidth property


Example

Example

Return the available width of the screen:

The output of the above example is:

Try it »


More examples

This example contains all screen properties


Screen Object Reference Screen object