Latest web development tutorials

Screen availWidth property

Screen Object Reference Screen objects

Definition and Usage

availWidth attribute declares the browser display screen available width in pixels. In such an operating system Windows, this available height does not include allocated to semi-permanent features (such as the task bar at the bottom of the screen) of vertical space.

grammar

screen.availWidth


Browser Support

Internet ExplorerFirefoxOperaGoogle ChromeSafari

All major browsers support availWidth property


Examples

Examples

Returns the available width of the screen:

<script>

document.write("可用宽度: " + screen.availWidth);

</script>

Examples of the above output:


try it"


Examples

More examples

This example contains all screen attributes


Screen Object Reference Screen objects