X
HOME HTML CSS JAVASCRIPT SQL PHP JQUERY ANGULAR BOOTSTRAP XML ASP.NET MORE...
REFERENCES | EXAMPLES | FORUM | ABOUT

Screen availWidth Property

Screen Object Reference Screen Object

Example

Return the available width of your screen:

var x = "Available Width: " + screen.availWidth;

The result of x will be:


Try it yourself »


Definition and Usage

The availWidth property returns the width of the user's screen, in pixels, minus interface features like the Windows Taskbar.


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The availWidth property is supported in all major browsers.


Syntax

screen.availWidth

Return Value

Type Description
Number The width of the user's screen, in pixels


Examples

More Examples

All screen properties in one example


Screen Object Reference Screen Object

Your suggestion:

Close [X]

Thank You For Helping Us!

Your message has been sent to W3Schools.

Close [X]
Search w3schools.com:

WEB HOSTING

UK Reseller Hosting

WEB BUILDING

Download XML Editor FREE Website BUILDER Free HTML5 Templates

SHARE THIS PAGE

facebook