Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > JavaScript > Why do this? <...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 10 Topic 35502 of 36380
Post > Topic >>

Why do this? <SCRIPT TYPE="text/javascript"

by Steve <tinker123@[EMAIL PROTECTED] > May 6, 2008 at 01:35 PM

Hi;

I've being going through some legacy code on an old JSP site I have
been patching.  I noticed that when I save the JSP down to my PC as an
HTML file I get this javascript error in IE 6 (  not in the latest
Firefox ):

"invalid character"

The problem traces back to this line of code:

<SCRIPT TYPE="text/javascript"  SRC="abc/jsp/blah.js"></SCRIPT>

It goes away if I remove the "text/".

I have never seen a script tag with "TYPE" or "text/javascript"
used.   Only  "language = "javascript""

What is <SCRIPT TYPE="text/javascript"  used for?   Is it necessary?

Thanks in advance
 




 10 Posts in Topic:
Why do this?


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Fri Jul 25 23:26:29 CDT 2008.