Javascript Reference
Categories: window

javascript window self

@July 30, 2008, 12:45 p.m.
self Firefox/Netscape/NN 2 IE 3 Chrome/Safari/DOM n/a  
Read-only  

This is a reference to the current window or frame. This property is synonymous with window, but is sometimes used to improve clarity in a complex script that refers to many windows or frames. Never use the reference window.self to refer to the current window or frame because some browser versions get confused with the reference.

 
Example
 
self.focus( );
 
Value

window object reference.

 
Default

Current window.


Powered by Linode.