my dog learned polymorphism
The moose likes HTML, CSS and JavaScript and the fly likes how do close mozilla window? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "how do close mozilla window?" Watch "how do close mozilla window?" New topic

how do close mozilla window?

venkataraman muthuvel

Joined: Jan 28, 2004
Posts: 22
hi all
i able to close browser window by using javascript
this code working fine in IE (<a href="javascript:window.close()">close</a>
but the above code note working mozilla ,anybody know help me
Eric Pascarello

Joined: Nov 08, 2001
Posts: 15385
If the window was not opened by JavaScript, then you can not close the window.
I agree. Here's the link:
subject: how do close mozilla window?
It's not a secret anymore!