Forum Moderators: open
Netscape Navigator requires that external scripts be served with a Content-Type of application/x-javascript
I have always used type='text/javascript'. I know most browsers ignore the type atribute and take the 'language' attribute.
most browsers only support the deprecated LANGUAGE
The script I am using is external. I have tested in NS 4 + 6, Opera 5 + 6, IE 4.01+ all without the type attribute and it runs fine.
My Q is should I even worry about using application/x-javascript as a type??
The HTML code to call an external js file, on the other hand, is best written by including both the deprecated language attribute and the current type attribute:
<script type="text/javascript" language="JavaScript url="code.js"></script>