Child pages
  • Closing a Browser Window via a BSP
Skip to end of metadata
Go to start of metadata

Closing the browser window via JavaScript.

To close a browser window use the following JavaScript code. For Internet Explorer:

window.opener=self;window.close();

And for Firefox use:

window.open('','_parent','');window.close();