Softpress

Creating a Link to Close the Current Window

You can easily add a link that closes the current window when you click on a link to a new window.

Do this, select some HTML text or a graphic item and open the Hyperlink dialog from the Edit menu (or  press Command-k). In here, enter the following into the field on the External tab:

javascript:window.close()

Be aware that this will only work on windows that were opened with JavaScript - such as windows opened with the Link to New Window or Spawn New Window Actions.


Related Articles

Attachments

No attachments were found.

Article Details

Last Updated
24th of November, 2008

Would you like to...

Print this page  Print this page

Email this page  Email this page

Post a comment  Post a comment

 Subscribe me

Subscribe me  Add to favorites

Remove Highlighting Remove Highlighting

Edit this Article

Quick Edit

Export to PDF


User Opinions

0% thumbs up 100% thumbs down (2 votes)

How would you rate this answer?




Thank you for rating this answer.

Continue