Here are a couple you can try:
<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
---
FrontPage Support:
http://www.frontpagemvps.com/
About FrontPage 2003:
http://office.microsoft.com/home/office.aspx?assetid=FX01085802
===
| Hello Trevor,
|
| This method for closing the window works great in IE but has no effect in
| Mozilla or Netscape. Any other ways that you know of?
|
| Thank you,
|
| Russell
|
|
| | > Russell wrote:
| > > Thanks, I obviously meant add the close button to the window, not the
| > > image.
| > >
| > > Is there anyway to have a close button in that pop up that will just
| > > close the window and not have ask for confirmation first?
| >
| > Yes, the method I gave adds a close button to the pop-up window. (I
| haven't
| > actually tested this exact code, but I have used similar.)
| >
| > Clicking on the close button will cause a prompt if the window is not
| opened
| > by yourself (not sure of the exact details).
| > To avoid this, give the window.opener property a dummy value - can be
| > anything. Then it is happy and doesn't prompt.
| >
| > Try this:
| > <input type="button" value="Close"
| > onClick="window.opener='fred';window.close()">
| >
| > --
| > Cheers,
| > Trevor L.
| > Website:
http://tandcl.homemail.com.au
| >
| > >
| > > Thanks,
| > > Russell
| > >
| > > | > >> Russell wrote:
| > >>> How would you add a "close window" button to this?
| > >>
| > >> You can't add a close button to a .jpg file.
| > >>
| > >> You need to call an .html file which displays the .jpg and also has
| > >> the close button in it
| > >>
| > >> Something like
| > >> <html><head></head>
| > >> <body>
| > >> <img src="pic1.jpg" alt="Picture 1"><br>
| > >> <input type="button" value="Close" onClick="window.close()">
| > >> </body>
| > >> <html>
| > >>
| > >> If you name this pic1.html, then change
| > >> ONCLICK="fullScreen('pic1.jpg');"
| > >> to
| > >> ONCLICK="fullScreen('pic1.html');"
| > >> --
| > >> Cheers,
| > >> Trevor L.
| > >> Website:
http://tandcl.homemail.com.au
| >
| >
|
|