0 turns on Logging when it reaches that
code line
var LogAfter = 0; // >0 turns on Logging after that many tokens
...
Using a text editor (like WordPad) you replace the nine lines starting
with "var theScript = " (shown here in red)
with whatever is in the clipboard after you run JStest.exe, then
open the page in your browser. It will take a while to interpret your script,
but if it finds errors, they will be displayed on the page. If it gets
to the end of your script without reporting any problems, then your original
script will probably run in a browser -- if not, I need you to send me
your script, so I can fix whatever went wrong.
There is more on Using the JavaScript Debug Interpreter, which you might wish to become familiar with.
Next: A Bigger Example
Tom Pittman
Rev 2010 December 23