Call Windows Calculator Through Javascript

JavaScript and client side scripting.

Moderator: General Moderators

Post Reply
Pirontech
Forum Commoner
Posts: 29
Joined: Wed Oct 28, 2009 5:31 am

Call Windows Calculator Through Javascript

Post 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.
User avatar
kaszu
Forum Regular
Posts: 749
Joined: Wed Jul 19, 2006 7:29 am

Re: Call Windows Calculator Through Javascript

Post by kaszu »

No, JS doesn't have access to OS
User avatar
VladSun
DevNet Master
Posts: 4313
Joined: Wed Jun 27, 2007 9:44 am
Location: Sofia, Bulgaria

Re: Call Windows Calculator Through Javascript

Post 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:
There are 10 types of people in this world, those who understand binary and those who don't
Post Reply