Closes the current window, or a referenced window.
When this method is called, the referenced window is closed.
This method is only allowed to be called for windows that were opened by a script using thewindow.open method.
may not close windows that were not opened by script.
Closing a window opened with
Closing the current window