Closing a window

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using FrontPage 2002 - I have windows that open up on top of the other ones and I want to have a "Close Window" button on the bottom of the window. I already have my hover button on the page, I just don't know how to make it close when I click it...any help?
 
You can only add a Close this Window button, and not receive a warning message, if the window is
created with JavaScript:

Close window:

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

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================


Mel said:
I'm using FrontPage 2002 - I have windows that open up on top of the other ones and I want to have
a "Close Window" button on the bottom of the window. I already have my hover button on the page, I
just don't know how to make it close when I click it...any help?
 
If by clicking on a link you open a new window, you can close the window
with his code: <a href="javascript:window.close()">Close Window</a>

Wally S

Mel said:
I'm using FrontPage 2002 - I have windows that open up on top of the other
ones and I want to have a "Close Window" button on the bottom of the window.
I already have my hover button on the page, I just don't know how to make it
close when I click it...any help?
 

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

Back
Top