User talk:La Longue Carabine: Difference between revisions
Content added Content deleted
m (→Analyze and Discuss: Added instructions for putting Spidermonkey code on an HTML page.) |
m (→To Use Spidermonkey Examples in HTML Documents: Note about readline and files.) |
||
Line 5: | Line 5: | ||
== To Use Spidermonkey Examples in HTML Documents == |
== To Use Spidermonkey Examples in HTML Documents == |
||
My JavaScript Spidermonkey examples (those which do not use <code>readline()</code> or read from files, anyway) can be used on an HTML page as follows: |
|||
1. Create an HTML page like the one below, |
1. Create an HTML page like the one below, |
||
Line 11: | Line 11: | ||
2. Paste the Spidermonkey script into it, |
2. Paste the Spidermonkey script into it, |
||
3. Comment out the |
3. Comment out the hash-bang line, |
||
4. Comment out the call to <code>main()</code>, |
|||
⚫ | |||
⚫ | |||
<pre> |
<pre> |