Meaningless Drivel is fun!
The moose likes Beginning Java and the fly likes open URL Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "open URL " Watch "open URL " New topic

open URL

Mg Oo

Joined: Nov 28, 2004
Posts: 22
Hi java masters,

May I know the java code to open browser and go URL ?

For example, we can do it in VB like

Shell("iexplore [url=")]")[/url]
Shell("firefox [url=")]")[/url]

Again, how can I set target for the opened window like _blank ?

I would like to create a applet that opens windows in specific target.
I would like to open window in Iframe name "main".

Thanks so.
[ April 20, 2006: Message edited by: Mg Oo ]
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Hi Mg Oo,

As discussed in this thread: Is that your name?
I agree. Here's the link:
subject: open URL
It's not a secret anymore!