In this script I noticed that I can use "window" or "self" interchangeably and everything still works. Is "window" same as "self" when used in HTML page?
The Window object defines a number of properties and methods that allow you to manipulate the web browser window. It also defines properties that refer to other important objects, such as the
documentproperty for the Document object. Finally, the Window object has two self-referential properties,
self. You can use either global variable to refer directly to the Window object.
In short, both