Meaningless Drivel is fun!*
The moose likes HTML, CSS and JavaScript and the fly likes window.close() Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "window.close()" Watch "window.close()" New topic
Author

window.close()

Fernando Dominguez
Ranch Hand

Joined: Sep 01, 2006
Posts: 102

Hello,

Hello, I'm triying to close a window that I have opened (as a popup window) using window.close() but It
doesn`t work on Internet explorer (it works on firefox)

Here is the code

Thaks
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
I am surprised that it works in Firefox, you must have it set to do it.

It is a security setting to keep you from destroying a person's history, removing toolbars, etc. Leave the window alone! Plus what happens if a pop up blocker would block the pop up and also close the window.

Eric
 
 
subject: window.close()
 
Similar Threads
Closing the browser window in JSP
close pop up window and redirect to parent window in struts2
How to open a separate new window
to close an opener
closing Modal dialog box