My favorites | Sign in
Project Logo
             
Search
for
Updated Sep 19, 2008 by pilgrim
Labels: about-dom, is-dom-method
WindowCloseMethod  
The window.close method

Closes a browser window.

Arguments

No arguments

Usage

window.close(); // closes current window
child.close (); // closes a child window opened with window.open ()

Browser compatibility

Compatibility table legend

Test IE8 IE7 IE6 FF3 FF2 Saf3 Op9 Chrome
typeOf(window.close) != 'undefined' Y Y Y Y Y Y Y Y

Further reading


Comment by BHoipkemier, May 16, 2008

Firefox will only close windows that are opened using the window.open method.


Sign in to add a comment
Hosted by Google Code