iWebBuddy.com
Thanks for visiting iWebBuddy.com ,

If it is your first time here, please enjoy reading the tutorials and articles. If you can not find what your looking for, then you can join the forums by registering so you will be able to log into the forums and ask for support for website development, request graphic designing services, promote your website, request website reviews, get advice from others about your website or be an active member of the community to help iWebBuddy.com grow.

After you register an account, you are required to log in. Once you log into your account, you will have more previliges. You will be able to post on the forums, send private messages and view the Chatbox ( link ) at the bottom of the forums.

Have a nice day.


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: 340
iCoins: 691

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

Back to top Go down

View previous topic View next topic Back to top


Permissions of this forum:
You cannot reply to topics in this forum