logo_michael-thomas.jpg (3143 bytes)

JavaScript - Close Window

This web page demonstrates how to close a browser window.

Training Info

  • Make a call to the close() function in the Window object.  "self" is the current window object.
  • code:  <a href="javascript:self.close()">Click Here to Close Popup Window</A>

Example

  Click Here to Close Popup Window