Visitors can always close pop-up windows with the by clicking the appropriate button (such as the "X" in Windows) on the top of the window. However, if you want to make a link or button that also closes the window, you can use the following code: Close window link Close window button
<a href="""javascript:window.close()""">Close</a> <form><input type="button" value="Close" onClick="window.close()"></form>
I made a link to a page on my own site open in a new window. I would like for customers to be able to close the new window with a button called Close Window. How can I do this? (KB005114)
Modified on: Tue, Jun 28, 2016 at 6:33 PM
Did you find it helpful? Yes No
Can you please tell us how we can improve this article?