selfdefined by the javascript environment and points to a [global] object (but is not part of the specification, and therefore may not be), but windowis part of the DOM specification. Most browsers windowuse it as a [global] object, but this is not always the case.
, self == window.self , - self (window). , , window.self == window.self.
, [global] sef, var global = this; .