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