Page is a not externally linkable
- Code, Content, and Presentation
-- JavaScript and AJAX
---- External JS question


tedster - 7:59 pm on Nov 3, 2002 (gmt 0)


Hey, Nick. The attribute
language="JavaScript" was introduced back when Netscape first introduced javascript -- but it is now deprecated in HTML 4.01. In fact, it's not supported at all in strict XHTML.

The recommended attribute is type="text/javascript". If you want deep backward compatibility, you can use them both:

<script src="file.js" language="JavaScript" type="text/javascript"></script>


Thread source:: http://www.webmasterworld.com/javascript/220.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com