<html>
<body>
<h1>The Document Object</h1>
<h2>The defaultView Property</h2>
<p>The defaultView property returns the current window object.</p>
<p>Window's width and height is:</p>
<p id="demo"></p>
<script>
const view = document.defaultView;
let width = view.innerWidth;
let height = view.innerHeight;
document.getElementById("demo").innerHTML = width + "x" + height;
</script>
</body>
</html>