Skip to content

24 ways to impress your friends

Vote up?

Inferis

Actually, that “general pool of variables” is the window object. You can easily test this by defining a function (for example: “foo1”) and then checking on the value through the window object: “window.foo1”. You’ll see that both “foo1” and “window.foo1” are the same. The same applies for all predefined window methods and properties (and thus window.open(...) = open(...)).