close page with a link

  • Thread starter Thread starter penelope
  • Start date Start date
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
 
I think this does it:
<a href="javascript:window.close()">Close</a>
 
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
 
copy that code, then in HTML view, paste it where you want the words "Close"
to appear.
 

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