Close Window Script

Post new topic   Reply to topic

View previous topic View next topic Go down

Close Window Script

Post by Marc on Fri Oct 16, 2009 6:03 pm

Here are two codes that you can use to close a window.

Close Window Link :

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


You will see a link on your html page if you use this code, and if you click it, there would be a pop up that asks you if you would like to close your window.


Close Window Button :

Here is the code you can use to close a window. You will see a button on your html page,

and if you click it, there would be a pop up that asks you if you would like to close your window.

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

Marc
Administrator
Administrator

Posts: 321
iCoins: 643

View user profile http://www.iwebbuddy.com

Back to top Go down

View previous topic View next topic Back to top


Post new topic   Reply to topic
Permissions of this forum:
You cannot reply to topics in this forum