<html>
<body>
<h1>Document defaultView Property</h1>
<p>The defaultView property returns the current window object.</p>
<p>Click the button to demonstrate.</p>
<button onclick="myFunction()">Get the window object</button>
<p id="demo"></p>
<script>
function myFunction() {
var x = document.defaultView;
document.getElementById("demo").innerHTML = x;
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_doc_defaultview by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 14:03:21 GMT -->
</html>