|
Just to add, you might want to use the type attribute as well ( the 'language' attribute is deprecated in favour of 'type' so use them both for compatibility).
ie
<script src="myScript.js" language="JavaScript" type="text/JavaScript">
</script>
Also, I think you may be getting confused between Java and JavaScript. These are two different languages, one developed by Sun, the other, Netscape.
JavaScript cannot be used to detect if it is, itself, enabled so, instead, there is the <noscript> tag to cater for non-scripting browsers.
Anything you put between <noscript> </noscript> will be displayed by such browsers.
So, you could provide instructions on how to enable scripting, or perhaps a link to a scripting-browser download within this section.
Scripting browsers will ignore this content.
JavaScript can be used to detect if Java is enabled. You can use navigator.javaEnabled( ). This will return true or false as appropriate.
HTH
|