aspose file tools*
The moose likes Beginning Java and the fly likes how to close the browser Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "how to close the browser" Watch "how to close the browser" New topic
Author

how to close the browser

Michael Waserman
Greenhorn

Joined: Jul 10, 2004
Posts: 28
Upon finishing the session I would like to automatically close the browser for security purposes. How can I do it?

Thanks. Michael.
Ray Stojonic
Ranch Hand

Joined: Aug 08, 2003
Posts: 326
I presume you're talking about a web browser, like Firefox?

Because of the problems that would arise from being able to do this, it can't be done. You can 'suggest' the browser be closed via javascript, but the user will still get a pop-up asking if they want to close the window.
Daksh Sharma
Greenhorn

Joined: Oct 27, 2004
Posts: 6
It cud be done using window.close() but then pop window will ask u whether u want to close the window or not

Offcourse this is javascript


dazler
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to close the browser
 
Similar Threads
closing all browsers
Control browser close event
Closing browser clicking on close button.
How to detect browser close in firefox?
how to terminate session when closing the browser?