Skip to content

Instantly share code, notes, and snippets.

@ozknozsrt
Created February 8, 2018 12:47
Show Gist options
  • Save ozknozsrt/077e76fb8d5b52cee6e2c0fba91a9554 to your computer and use it in GitHub Desktop.
Save ozknozsrt/077e76fb8d5b52cee6e2c0fba91a9554 to your computer and use it in GitHub Desktop.
Force Open The Different Browser
<hta:application applicationname="HTA Test" scroll="yes" singleinstance="yes">
<script type="text/javascript">
function openURL()
{
var shell = new ActiveXObject("WScript.Shell");
shell.run("Firefox http://www.google.com");
}
</script>
</head>
<body>
<input type="button" onclick="openURL()" value="Open Google in Firefox">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment