I’m using the following code to open a specific URL:
Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + url);
That part of the code open the browser and, once open, I build an applet that will load some content.
This is working fine. But now I got a request to open the browser window without toolbar. That can be achieved using Javascript. Something like:
window.open(''+URL+'','_blank','toolbar=no')
Is there any way to pass the argument 'toolbar=no' when I open the browser using the Runtime.getRuntime().exec()?
If not, any ideas how can I solve this?
For this problem I used the following approach…
In my java applet I do a Javascript call using netscape.javascript.JSObject.
In the Javascript I just need to pass the right flags in the window.open
This seems to work ok.
Thanks for your help.
Cheers