Close Window Button

D

David Torossian

Does anybody know how to insert a "close window button" ?
Basicaly, a button that will close the current window.

Thanks!
 
M

Martin Chantler

Hi,

Try thses two lines of code for a Button and normal text link.

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


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


All the best,
Martin.
 
D

David Torossian

THANK YOU!

it worked!
I just added a form button and in the HTML line of the button I added
"onClick="javascript:window.close()""
Thanks a bunch!

| Hi,
|
| Try thses two lines of code for a Button and normal text link.
|
| Close Window
| ~~~~~~~~~~~~
| <form><input type=button value="Close Window"
| onClick="javascript:window.close();"></form>
|
|
| Close Window
| ~~~~~~~~~~~~
| <a href="javascript:window.close();">Close Window</a>
|
|
| All the best,
| Martin.
|
|
|
| | > Does anybody know how to insert a "close window button" ?
| > Basicaly, a button that will close the current window.
| >
| > Thanks!
| >
| >
|
|
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top