We will show you how to use Window.open() & Window.close() methods to open and close a popup window.
Window.open()
This syntax is used to open the web pages into a new window.
Window.close()
This syntax is used to close the window which is opened by window.open() method.
[code]
[/code]