Forum Moderators: open

Message Too Old, No Replies

window.close

window.clos not working in mozilla

         

matt_poole

10:59 am on Jul 23, 2003 (gmt 0)

10+ Year Member



Hi guys,

bit of a newbie question here.

I've got this:

<a href="javascript:window.close();"><img src="images/close.gif" width="21" height="20" border="0" alt="Close Window"/></a>

It works in IE ok, but I need it to work in mozilla, but it doesnt. Should it? is there an alternative?

thanks for your help

hakre

11:10 am on Jul 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



have you tried: this.window.close();?

and keep in mind to use the onclick event, it's maybe better working than the pseudo javascript: protocoll.

DrDoc

4:30 pm on Jul 23, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...or self.close()

matt_poole

8:36 am on Jul 24, 2003 (gmt 0)

10+ Year Member



Thanks guys I'll try these :)