close()

This method is used to close the current window. It should be noted that Netscape Navigator does not allow the main window to be closed from a subwindow without first displaying a security dialog box asking for confirmation of the closing of the window or subwindow.

syntax:

close()

This method is used with the following:

document
window