javascript - screen.width and screen.height - sample

<!DOCTYPE html>
<html>
<body>

<p id="demo"></p>

<script>
document.getElementById("demo").innerHTML =
"Screen width and Height is " + screen.width + " - H: " + screen.height;
</script>

</body>
</html>

Yorumlar