The window.screen object contains information about the user's screen.
The window.screen object can be written without the window prefix.
Some properties:
The screen.availWidth property returns the width of the visitor's screen, in pixels, minus interface features like the Windows Taskbar.
Return the available width of your screen:
The output of the code above will be:
The screen.availHeight property returns the height of the visitor's screen, in pixels, minus interface features like the Windows Taskbar.
Return the available height of your screen:
The output of the code above will be:
All screen properties in one example
Your message has been sent to W3Schools.