File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

window.close not working in mozilla

 
rajanikanth bhagavan kanth
Ranch Hand
Posts: 78
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
window.close is not working in mozilla , i have tried self.close also(Mozilla 3.0.16)

just i called one javascript function in onclick

in that function i wrote like window.close();

can any one please help me.


here is the sample code


Regards
Bhagavan
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can ONLY close windows YOU create with window.open()

If window.close() works for you without a popup window in IE, you must be using an old version of IE.

Eric
 
David Newton
Author
Rancher
Posts: 12617
IntelliJ IDE Ruby
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As an aside, closing a window in a function named openwin() is counter-intuitive.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic