I am able to get the alert with the url but just not able to open a new window in default browser...
alert('testing' + tbxss);
java.lang.Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + tbxss);
I tried window.open(url) or window.location.href(url) but it works only in the firefox and not in googlechrome, adobeair and IE.. and basically it should open in a user's default browser.. So any help would be appreciated
Joined: Nov 08, 2001
It will open up in the browser the user is currently using. Why would you want to open up Firefox if the user is in chrome? Sounds funny and most people's default browser is the one they use.
Joined: Oct 08, 2006
Vaishali soneta wrote:I tried window.open(url) or window.location.href(url) but it works only in the firefox and not in googlechrome, adobeair and IE.. and basically it should open in a user's default browser.. So any help would be appreciated
So IE is your default browser. Why do you want to open it in the default browser instead of the current browser? This makes no sense and is generally very bad for user experience.
You can't do this with JS. Best what you can do is creating a Java application which makes use of Desktop#browse() and embed it as an applet or webstart app in your JSP.