"Close" button

F

Fred

How would I add a button "Close This Window" to a page?
(Clicking on the button closes that page)
Thanks.
 
K

Kevin Spencer

<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.
 
Top