/

HTML / CSS / JavaScript Tutorial

JavaScript Window method: close()

[this page | pdf | back links]

The close() method (when applied to Window objects in the JavaScript BOM) closes the current window.

 

It has the following syntax with no parameters. It does not return a value.

 

window.close()

 


NAVIGATION LINKS
Contents | Prev | Next | JavaScript DOM (and BOM)


Desktop view | Switch to Mobile