The window.screen object contains information about the user's screen.
The window.screen object can be written without the window prefix.
The screen.width property returns the width of the visitor's screen in pixels.
Display the width of the screen in pixels:
"Screen Width: " + screen.width;
Result will be:
For modern computers, Color Depth and Pixel Depth are equal.