Bookmark Topic Watch Topic
  • New Topic

url to open in the default browser of the client  RSS feed

 
Vaishali soneta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
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>
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Report post to moderator
This has nothing to do with JSP. It is just a view technology. Your question is Javascript related. There is a forum out for HTML/Javascript related issues.

Back to your actual problem: in Javascript you normally use window.open() for this. There's no need for this platformspecific workaround.
 
Vaishali soneta
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Report post to moderator
Sorry for that.. I will add this question in the approproate forum..
 
Bauke Scholtz
Ranch Hand
Posts: 2458
  • Mark post as helpful
  • send pies
  • Report post to moderator
No need to do so. A moderator will move this topic sooner or later.
Besides, your question is also already answered. Why'd you to open a new topic then?
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post multiple questions on the same topic.

The conversation continues here: http://www.coderanch.com/t/436204/HTML-JavaScript/Open-url-default-browser#1938928

Eric
 
Don't get me started about those stupid light bulbs.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!