jPaq Example - Alerting The PC User

If you have ever written a JScript to carry out a specific task, you may have noticed that using WScript.Echo() can be a little bland.  That is why I suggest using jPaq's alert() function.  Here is an example of how to ask a Yes or No question, process the answer, and then communicate something to the user:

Okay, so that was easy, but how do we emulate the alert function that is executed on a web page?  All you have to do is call it in the same way that you would in the browser.  Check this code out that will work the same way in the browser (without jPaq) as it does outside the browser with jPaq:

Applicable Parts