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>