Screen availWidth property
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
All major browsers support availWidth property
Examples
Examples
Returns the available width of the screen:
<script>
document.write("可用宽度: " + screen.availWidth);
</script>
document.write("可用宽度: " + screen.availWidth);
</script>
Examples of the above output:
try it"
More examples
This example contains all screen attributes
Screen objects