close page with a link

P

penelope

I have recently posted a note with something similar to
this (or maybe not).

How can I close a page by clicking on a word.

In other words, I have a page and at the bottom I would
like to put the word/phrase "Close This Page". When you
click in this word/phrase, I would like the page to close.

Any ideas on how to do this?


Regards,

Samuel
 
V

Very Joyful \(Victoria\)

I think this does it:
<a href="javascript:window.close()">Close</a>
 
P

penelope

Thanks but how do I apply this. Do I create a hyperlink
and paste the script somewhere in the page.

I just go as far as typing the word where you click to
close the window.

Regards
 
J

Jeff Gruetzmacher

copy that code, then in HTML view, paste it where you want the words "Close"
to appear.
 
Top