Web Design and Publishing
Web Programming
JavaScript

How is screen resolution measured?

Answer

Wiki User
01/12/2012

<html>

<head>

<script type="text/javascript" language="javascript">

function getScreenWidth()

{

alert("Width: "+screen.width+"\nHeight: "+screen.height);

}

</script>

</head>

<body onload="getScreenWidth()">

// Your code here

</body

</html>