2

How can i open windows calculator from website? with javascript or actionscript? Ive tried avtiveX but its only in explorer, I want to open calculator from google chrome

Shalva Gegia
  • 95
  • 1
  • 8

4 Answers4

6

The only solution i found is using URI scheme

window.open('Calculator:///'); /* shows a confirm dialog to run the app*/

i'm not sure if this would work on older versions (7,8,8.1) but it works on windows 10

Mohammad Albay
  • 173
  • 3
  • 8
5

You can't*. Consider the implications if you could open an arbitrary program on someone's computer from a web page...


(* Without writing and installing a plug-in, and plug-ins are increasingly being phased out by browser vendors in favor of sandboxed extensions.)

T.J. Crowder
  • 1,031,962
  • 187
  • 1,923
  • 1,875
2

Use href="ms-calculator://" but you'll get a popup asking if you want to open it. If that is no good, then you would have to somehow get it to open without the alert popup.

kernix
  • 39
  • 3
1

You can use calculator: URI (just as a URL), it will prompt the user with an html message first.

Maksiks
  • 94
  • 11