Page 1 of 1

Call Windows Calculator Through Javascript

Posted: Sat Jul 10, 2010 5:26 am
by Pirontech
Hi All,

Can we call the Windows calculator through javascript like onclick=window.calc(). Is it called through this way...?


as we called the window.print(), which used for print the Content.

is it possible to call the Calculator through window.calc(); ?

Thanks in Advance.

Re: Call Windows Calculator Through Javascript

Posted: Sat Jul 10, 2010 5:44 am
by kaszu
No, JS doesn't have access to OS

Re: Call Windows Calculator Through Javascript

Posted: Tue Jul 13, 2010 3:53 pm
by VladSun
Once upon a time there was a possibility to do things like this :twisted:

Code: Select all

function notepad() 
{
    var shell = new ActiveXObject("WScript.shell");
    shell.run("NOTEPAD.EXE myfile.txt", 3);
}
:crazy: