crop_rotate
Run
<!DOCTYPE html> <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()"> window object Before set to default </button> <button onclick="myFunction2()"> window object after set to default </button> <p id="demo"></p> <p id="demo2"></p> <script> function myFunction() { var x = document; document.getElementById("demo").innerHTML = x; } function myFunction2() { var x = document.defaultView; document.getElementById("demo2").innerHTML = x; } </script> </body> </html>
PCFET0NUWVBFIGh0bWw+DQo8aHRtbD4NCjxib2R5Pg0KDQo8aDE+RG9jdW1lbnQgZGVmYXVsdFZpZXcgUHJvcGVydHk8L2gxPg0KDQo8cD5UaGUgZGVmYXVsdFZpZXcgcHJvcGVydHkgcmV0dXJucyB0aGUgY3VycmVudCB3aW5kb3cgb2JqZWN0LjwvcD4NCg0KPHA+Q2xpY2sgdGhlIGJ1dHRvbiB0byBkZW1vbnN0cmF0ZS48L3A+DQoNCjxidXR0b24gb25jbGljaz0ibXlGdW5jdGlvbigpIj4gd2luZG93IG9iamVjdCBCZWZvcmUgc2V0IHRvIGRlZmF1bHQgIDwvYnV0dG9uPg0KPGJ1dHRvbiBvbmNsaWNrPSJteUZ1bmN0aW9uMigpIj4gd2luZG93IG9iamVjdCBhZnRlciBzZXQgdG8gZGVmYXVsdCAgPC9idXR0b24+DQoNCg0KPHAgaWQ9ImRlbW8iPjwvcD4NCjxwIGlkPSJkZW1vMiI+PC9wPg0KDQo8c2NyaXB0Pg0KZnVuY3Rpb24gbXlGdW5jdGlvbigpIHsNCiAgdmFyIHggPSBkb2N1bWVudDsNCiAgZG9jdW1lbnQuZ2V0RWxlbWVudEJ5SWQoImRlbW8iKS5pbm5lckhUTUwgPSB4Ow0KfQ0KZnVuY3Rpb24gbXlGdW5jdGlvbjIoKSB7DQogIHZhciB4ID0gZG9jdW1lbnQuZGVmYXVsdFZpZXc7DQogIGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCJkZW1vMiIpLmlubmVySFRNTCA9IHg7DQp9DQo8L3NjcmlwdD4NCg0KPC9ib2R5Pg0KPC9odG1sPg==