in reply to cgi form and javascript

Can I suggest that you put the closing angle bracket on the script tag? ie. change:
<script="javascript" src="demo.js"</script>
to
<script="javascript" src="demo.js"></script>

Personally I would change that entire line to read:

<script type=\"text/javascript\" src=\"demo.js\"></script>
Why, you ask? Well a tag name (such as script) should have a space before the first argument (type=\"text/javascript\"). Also the quote marks should be escaped within a Perl string as mentioned above.

update: reformatted mis-escaped <code> tag.

update: accidently pressed the update button twice.

Replies are listed 'Best First'.
Re^2: cgi form and javascript
by omega_monk (Scribe) on Jun 09, 2005 at 14:52 UTC
    Nice catch, I completely missed that one. Especially after the cutting, and pasting. ;)