SaHiN 14 Posted December 16, 2013 Report Share Posted December 16, 2013 Hi, My sample code, ui html panel("<a href=\"http://www.google.com\">Google</a>", 50) how to make open link default browser (mozilla, chome, ie) ? Quote Link to post Share on other sites
darryl561 177 Posted December 16, 2013 Report Share Posted December 16, 2013 This should do it ui html panel("<a href=\"http://www.google.com\" target=\"_blank\">Google</a>", 50) 1 Quote Link to post Share on other sites
HelloInsomnia 1103 Posted December 16, 2013 Report Share Posted December 16, 2013 You can also make the onclick of the link run a command and shell it out using cmd. This way you can choose the browser but obviously it's safer to do it the way Darryl said since that will open in the default browser I'm just adding that it's possible that way as well. Here is an example with load html and a button but you can do it in the ui html panel and with a link just use a javascript void for the href. define open_site { shell("cmd.exe /c start http://imautobots.com") } load html("<input type=\"button\" value=\"Click\" onclick=\"ubot.runScript(\'open_site\')\">") 1 Quote Link to post Share on other sites
SaHiN 14 Posted December 20, 2013 Author Report Share Posted December 20, 2013 Thank you Quote Link to post Share on other sites
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.