Created
February 8, 2018 12:47
-
-
Save ozknozsrt/077e76fb8d5b52cee6e2c0fba91a9554 to your computer and use it in GitHub Desktop.
Force Open The Different Browser
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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