website promotion banner
eturnkeys
Your Ad Here
Web Programming  Home Web Programming JavaScript Close Window
rss

Close Window

Author: Ghostbone.com More by this author


Close WindowAdd this nifty script to your pop up pages for the users to close them :). Six great styles that should work if done properly.

Closing a Regular Window from a Link


<a href="javascript:window.close()">Close</a>

Closing a Regular Window from an Image

<a href="javascript:window.close()">
<img border="0" src="closingwindows.gif" width="95" height="46">
</a>

Closing a Regular Window from a Button

<form>
<input type="button" value="Close" onClick="window.close()">
</form>

Closing a Frameset Window from a Link

<a href="javascript:top.window.close()">Close</a>

Closing a Frameset Window from an Image

<a href="javascript:window.close()">
<img border="0" src="closingwindows.gif" width="95" height="46">
</a>

Closing a Frameset Window from a Button

<form>
<input type="button" value="Close" onClick="top.window.close()">
</form>


Rate this Material: Bad 1 2 3 4 5 Excellent
print this page tell a friend subscribe to newsletter subscribe to rss

Add comments to "Close Window"