This site is mobile accessible. Press the "Tap Here" button to use a different font-size.
Smartphone icons created by Freepik - Flaticon
The window.screen object contains information about the user's screen.
The
property returns the width of the visitor's screen in pixels.Display the width of the screen in pixels:
document.getElementById("demo").innerHTML = "Screen Width: " + screen.width;
Result will be:
The
property returns the height of the visitor's screen in pixels.Display the height of the screen in pixels:
document.getElementById("demo").innerHTML = "Screen Height: " + screen.height;
Result will be:
The
property returns the width of the visitor's screen, in pixels, minus interface features like the Windows Taskbar.Display the available width of the screen in pixels:
document.getElementById("demo").innerHTML = "Available Screen Width: " + screen.availWidth;
Result will be:
The
property returns the height of the visitor's screen, in pixels, minus interface features like the Windows Taskbar.Display the available height of the screen in pixels:
document.getElementById("demo").innerHTML = "Available Screen Height: " + screen.availHeight;
Result will be:
Display the color depth of the screen in bits:
document.getElementById("demo").innerHTML = "Screen Color Depth: " + screen.colorDepth;
Result will be:
The #rrggbb (rgb) values used in HTML represents "True Colors" (16,777,216 different colors)
The
property returns the pixel depth of the screen.Display the pixel depth of the screen in bits:
document.getElementById("demo").innerHTML = "Screen Pixel Depth: " + screen.pixelDepth;
For modern computers, Color Depth and Pixel Depth are equal.
Eventually the navigation links, above, will be replaced by these (previous) and (next) buttons below.
JavaScript icons used in the buttons provided by ICONS8.COM. Smartphone icons created by Freepik - Flaticon