close button

H

heidi

Does anyone know how I could program a button to close the window? The only options I'm finding are linking to other pgs., email, bookmarks, etc.
Thanks
 
S

Steve Easton

This will create a button named "Close Page"
that will close the page when clicked.


<p align="center"><input type="button" value="Close Page" name="Closeup"
Onclick="parent.close()"></p>


heidi said:
Does anyone know how I could program a button to close the window? The
only options I'm finding are linking to other pgs., email, bookmarks, etc.
 
T

Tom Pepper Willett

Here's a couple:

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

or:


Form Button:

<form>
<div align="center"><center><p><input TYPE="button" NAME="close"
VALUE="Close this Window" onClick="self.close()"></p>
</center></div>
</form>
--
Tom Pepper Willett
Microsoft MVP - FrontPage
www.microsoft.com/office/frontpage/prodinfo/default.mspx
To find the best Newsgroup for FrontPage support see:
www.net-sites.com/sitebuilder/newsgroups.asp
-----
heidi said:
Does anyone know how I could program a button to close the window? The
only options I'm finding are linking to other pgs., email, bookmarks, etc.
 
H

heidi

is there a way to use part of an imagemap to close the window? i don't need to create the button itself, just make the close button part of an imagemap close the 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