Name
LANGUAGE — NN 2 IE 3 HTML 4
Synopsis
LANGUAGE=”scriptingLanguage"
Optional
Sets the scripting language for script statements defined in the
element. This attribute is deprecated in HTML 4.0 (in favor of the
TYPE
attribute), but it has been so widely used
since the first days of scriptable browsers that its use and support
will continue for a long time to come.
Example
<SCRIPT LANGUAGE="JavaScript"> ... </SCRIPT>
Value
Internet Explorer recognizes four case-insensitive language names:
JAVASCRIPT
| JSCRIPT
|
VBS
| VBSCRIPT
. Navigator
recognizes only JAVASCRIPT
. Versions of JavaScript
are also supported in appropriate browsers. To keep the attribute
values one-word identifiers, the version numbers are tacked onto the
end of the "JavaScript"
language name. The
version-less "JavaScript"
is observed by all
browsers; "JavaScript1.1"
is recognized only by
Navigator 3; "JavaScript1.2"
is recognized by
Navigator 4 and Internet Explorer 4. When SCRIPT
elements are assigned these later version values, older browsers that
don’t support the named version ignore the
SCRIPT
elements.
Default
JavaScript
Object Model Reference
- IE
[window.]document.all.elementID.language
Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.