34,333
edits
Changes
→Closing Browser Windows using JavaScript
</pre>
It is also possible to close the window that opened the current window using ''opener'':
window.opener.close()
will close the window that opened the window in which the above script is run.