aspose file tools*
The moose likes HTML, CSS and JavaScript and the fly likes Closing the browser window through Java 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 "Closing the browser window through Java" Watch "Closing the browser window through Java" New topic
Author

Closing the browser window through Java

Shrikant Kulkarni
Ranch Hand

Joined: May 10, 2005
Posts: 42
Hi All,

My wireless application works on a PDA browser. The PDA browser doesn't support javascript. When user wants to logoff from the application, he clicks on the logoff button. After clicking it the current browser window should close.
I am using XHTML-MP markup language to develop the page instead of HTML.
I need a piece of code (Example Java code, not Javascript code) in order to close the current window browser.

Any help will be welcome.

Shrikant
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

You can't do this with Java.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
Jan Groth
Ranch Hand

Joined: Feb 03, 2004
Posts: 456
well, in j(x)se you can execute system commands. assuming that you are working with j2me, you might investigate in this direction, i think there is a forum for this here...

jan
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Originally posted by Jan Groth:
well, in j(x)se you can execute system commands.


But not from an Applet.
Paul Clapham
Bartender

Joined: Oct 14, 2005
Posts: 18570
    
    8

On normal PCs, it's rude for a web page to try to close the browser in which it is running. Is this not the case for PDAs as well?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Closing the browser window through Java