Closes the current window, or a referenced window.
When this method is called, the referenced window is closed.
Scripts may not close windows that were not opened by script.
Closing a window opened with window.open()
Closing the current window
DOM Level 0.
window.close() is not part of any W3C specification or technical recommendation.