March 22, 2001 - The Scope of Global Code
![]() |
March 22, 2001 The Scope of Global Code Tips: March 2001
Yehuda Shiran, Ph.D.
|
window object, the one you query the location of by window.location(). The variable object holds all global variables and methods. A new object is created on the entry point to the global code, and is destroyed upon exit.
The this object is the browser window object. Instead of window.location, for example, you can write this.location and get the same URL of the current page. Try it.


Find a programming school near you