Forum Moderators: open

Message Too Old, No Replies

javascript compatibility in Safari and Navigator

self closing a pop-up window

         

issad

6:53 pm on Aug 15, 2005 (gmt 0)



Hey,

Just a quick question for any of you. I'd appreciate any help you may be able to offer.

I'm a graphic designer (not web) with almost no html knowledge. Through the magic of the Dreamweaver Design view window I have managed to almost complete the design of a website. The only problem is I'm having difficulty getting a pop-up window to self close in Navigator or Safari browsers. It seems to work fine in IE and Mozilla Firefox.

I've tried, self.close, window.close and using text links with no success.

- LANDSCAPES gallery - javascript:window.close; (image)
- STRUCTURES gallery - javascript:self.close(); (image)
- FESTIVALS/RELIGION gallery - javascript:self.close(); (text)

Thanks to anybody who may help!

[edited by: jatar_k at 7:14 pm (utc) on Aug. 15, 2005]
[edit reason] no urls thanks [/edit]

RonPK

10:24 pm on Aug 15, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<a href="#" onclick="window.close()">text or image here</a>

should work in any browser.