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

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
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: 15376
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?
Similar Threads
to close an opener
Closing the window.
Invent your own html tag
can't get my child window to close and reload the parent.
problem with self.close()