Mega Code Archive

 
Categories / JavaScript Tutorial / Window
 

Window self

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. <html>     <script language="JavaScript">     <!--     function closeWin(){       self.close()     -->     </script> </html>