File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/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
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
how to terminate session when closing the browser?
Control browser close event
How to detect browser close in firefox?
Closing browser clicking on close button.