window.self : Window Object : Window JAVASCRIPT TUTORIALS


JAVASCRIPT TUTORIALS » Window » Window Object »

 

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>







HTML code for linking to this page:

Follow Navioo On Twitter

JAVASCRIPT TUTORIALS

 Navioo Window
» Window Object