Can I program a button to close a window?

E

Eleda

I would like to creat pop-up windows to define words used
on my site. I have hyperlinked the word to a new page and
set it to open in a new window. Now, is there a way to
place a button in that new window that will close it,
rather than making the reader use the X to close?
 
S

Steve Easton

Place this where you want the button to appear:
<input type="button" value="Close" Onclick="parent.close()">

You can edit value="Close" to change the text on the button.

--
Steve Easton
Microsoft MVP FrontPage
95isalive
This site is best viewed..................
...............................with a computer
 

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