<html>
<body>
<h2>The JavaScript <b>this</b> Keyword</h2>
<p>In this example, <b>this</b> refers to the window Object:</p>
<p id="demo"></p>
<script>
var x = this;
document.getElementById("demo").innerHTML = x;
</script>
</body>
<!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_this by HTTrack Website Copier/3.x [XR&CO'2014], Wed, 05 Jun 2019 13:23:05 GMT -->
</html>