• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

window.close()

JavaScript1.0+, JScript1.0+ Nav2+, IE3+, Opera3+ Syntax

							window.close()

Description

The close() method of the Window object is used to close browser windows. Even though this method was first introduced in JavaScript 1.0, there have been some changes. In the first version, this method could be used to close any window. In JavaScript 1.1, it was restricted to close only windows opened using JavaScript. In JavaScript 1.2, you must have the UniversalBrowserWrite privilege to unconditionally close a window.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint