JavaScript lanGuage or lanQuage

Good God -

Does Javascript use a Q instead of a G in the word language?

<script lanquage=“text/javascript”> instead of <script language=“text/javascript”>

This has cost me a week or two.

My code works with a Q. Dosn’t with a G.

wow and dammit.

:smack: :smack: :smack: :smack: :smack: :smack: :smack:

Is “text/javascript” a legitimate value for the language attribute? I always use <script language=“JavaScript”> on the few occasions when I do any web page hacking. It will usually work with just <script> though, because most (all?) browsers treat Javascript as the default. By misspelling language, you force the browser to ignore that attribute.

Is “text/javascript” a legitimate value for the language attribute? I always use <script language=“JavaScript”> on the few occasions when I do any web page hacking. It will usually work with just <script> though, because most (all?) browsers treat Javascript as the default. By misspelling language, you force the browser to ignore that attribute.

Yeah, <script lanquage=“text/javascript”> will do the same thing as <script>, which, for now, is the same thing as <script language=“javascript”>.

Because of confusion like this, the language attribute is deprecated, ie, don’t use it. What you want is the type attribute:

<script type=“text/javascript”>