Tryit Editor v2.3

Edit This Code:
<!DOCTYPE html> <html> <body> <p>In HTML the value of <b>this</b>, in a global function, is the window object.</p> <p id="demo"></p> <script> function myFunction() { return this; } document.getElementById("demo").innerHTML = myFunction(); </script> </body> <!-- Mirrored from www.w3schools.com/js/tryit.asp?filename=tryjs_invoke_function_3 by HTTrack Website Copier/3.x [XR&CO'2014], Fri, 23 Jan 2015 07:36:22 GMT --> </html>
Result:
Try it Yourself - © w3schools.com