How to close the window without the security check in javascript
<p>It may be needed that you need to give a close link in the popup you created. The window.close () method could be used to close a window.</p>

<p>However, there are certain security restrictions for using the close() method.
The close method closes only windows opened by JavaScript using the open method. If you attempt to close any other window, a confirm message is displayed, asking the user to choose whether the window is to be closed or not.</p>
