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. However, there are certain security restrictions for using the
You can close the current window using
self.close (); For example:
Sample Code for window.close()
Click on the ‘Open Popup window’ link to open the popup first and then click on the ‘Close the Popup window’ link to close the popup.