Forum Moderators: open

Message Too Old, No Replies

Self closing link

Just a quickie

         

smokeyb

1:53 pm on Sep 4, 2004 (gmt 0)

10+ Year Member



I want some images to open in a seperate window so as not to lose the page that people are reading (reference images) and I wanted to know if I can add a link to close that page. Thanks in advance
Smokey

encyclo

2:40 pm on Sep 4, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Do you mean something like this?:

<a href="#" onclick="self.close();">Close window</a>

The user need Javascript enabled, of course, but I assume you're using JS to open the window anyway!

smokeyb

2:52 pm on Sep 4, 2004 (gmt 0)

10+ Year Member



Yes thanks for that. Should have really known that myself aye?

R1chard

2:47 pm on Sep 6, 2004 (gmt 0)

10+ Year Member



How about <title>"Press Ctrl+W to close this window"