Window JavaScript Tutorial

Syntax

window.self.method
    window.self.property
The self property contains a reference to the current window.
This allows you to invoke functions or call properties on the current window without any confusion when multiple windows are displayed.