"Close" button

  • Thread starter Thread starter Fred
  • Start date Start date
F

Fred

How would I add a button "Close This Window" to a page?
(Clicking on the button closes that page)
Thanks.
 
<input type="button" value="Close Me" name="MyButton" onclick="window.opener
= self; window.close()">

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

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