Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how do close mozilla window?

 
venkataraman muthuvel
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
regards
venkat
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If the window was not opened by JavaScript, then you can not close the window.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic