I thought for some simple tests that just run a few commands i would try using some JavaScript and run it from the command line in Windows XP.
So for a quick test I crea
Microsoft's JScript runtime compiler does not provide the native JavaScript popups as found in the DOM (Document Object Model) which is supported by all major browsers today. However, this can be done by wrapping a function (in your case alert
) around the native MessageBox
found in WSH (Windows Scripting Host) as with any other scripting language supported with WSH.
But, just to give you an easier option... try DeskJS. It's a new console-style app for Windows that's designed to run pure JavaScript (ECMAScript 5.1 as of currently) away from the browser and supports all the basic JavaScript popup boxes together with other nifty additions to the language. You may just love it more than the browser's console...