Javascript language

adplus-dvertising
Monitor Information
Previous Home Next

How to get Monitor Information using JavaScript

Step 1. Written below code in your application.

<html>
<body>
<script language="JavaScript">
document.write("Screen Resolution: ")
document.write(screen.width + "*")
document.write(screen.height + "<br>")
document.write("Available View Area: ")
document.write(window.screen.availWidth + "*")
document.write(window.screen.availHeight + "<br>")
document.write("Color Depth: ")
document.write(window.screen.colorDepth + "<br>")
</script>
</body>
</html>

Step 2. Run the Application.

Previous Home Next