Win a copy of Spring Boot in Practice this week in the Spring forum!

Vaishali soneta

Greenhorn
+ Follow
since Mar 16, 2009
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Vaishali soneta

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
Sorry for that.. I will add this question in the approproate forum..
13 years ago
JSP
I want the url to open in the default browser of the client. Can anyone help me how to achieve this.. I want to do this on Client side... Can we do this on Javascript.. Please suggest. I am just stuck in here...
I am able to get the alert with the url but just not able to open a new window in default browser...
<script type="text/javascript"><![CDATA[
function test(tbxss){
alert('testing' + tbxss);
java.lang.Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + tbxss);
}



]]></script>
13 years ago
JSP
I want the url to open in the default browser of the client. Can anyone help me how to achieve this.. I want to do this on Client side... Can we do this on Javascript.. Please suggest. I am just stuck in here...
I am able to get the alert with the url but just not able to open a new window in default browser...
<script type="text/javascript"><![CDATA[
function test(tbxss){
alert('testing' + tbxss);
java.lang.Runtime.getRuntime().exec("rundll32 url.dll,FileProtocolHandler " + tbxss);
}



]]></script>