JavaScript Window Screen
JavaScript Window Screen
The window.screen object contains information about the user's screen.
Window Screen
The window.screen object can be written without the window prefix.
Some properties:
screen.availWidth - Available screen width screen.availHeight - Available screen height
Window Screen Available width
screen.availWidth Property returns the width of the visitor's screen, in pixels, minus interface features such as the window taskbar.
php中文网(php.cn)
Window Screen Available Height
The screen.availHeight property returns the height of the visitor's screen, in pixels, minus interface characteristics, such as Window taskbar.
Usage is the same as width.