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
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: window.close()
 
Similar Threads
close pop up window and redirect to parent window in struts2
Closing the browser window in JSP
closing Modal dialog box
to close an opener
How to open a separate new window