Previous Example-|-Next Example-|-Return to Chapter Listing
1. The following is a
script with no HTML comment tags--if you use a
non-JavaScript-compatible browser you'll be able to see the
script.
This is the script we used:
2. The following is the same script, but containing the comment tags--use a non-JavaScript-compatible browser and you won't see the script this time.
This is the script we used:
3. The following is the same script, this time with two different JavaScript comment lines; a single-line comment before the script and a multi-line comment after. You can see it all with a non-JavaScript-compatible browser, because we haven't used the HTML comment tags.
4. Finally, the other comment methods:
These are the scripts we used: