Search w3schools.com:

SHARE THIS PAGE

Screen availWidth Property

Screen Object Reference Screen Object

Definition and Usage

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

Syntax

screen.availWidth


Browser Support

Internet Explorer Firefox Opera Google Chrome Safari

The availWidth property is supported in all major browsers.


Example

Example

Return the available width of your screen:

<script>

document.write("Available Width: " + screen.availWidth);

</script>

The output of the code above will be:


Try it yourself »


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]