Name
LANGUAGE — NN n/a IE 4 HTML n/a
Synopsis
LANGUAGE=”scriptingLanguage"
Optional
Sets the
scripting language (and switches on the desired scripting engine) for
script statements defined in the element (such as event handler
script statements in the tag). This attribute is distinct from the
LANGUAGE
attribute currently in common use with
the SCRIPT
element. Internet Explorer uses the
LANGUAGE
attribute in any element to engage a
different script language interpreter for subsequent script
statements. If you use JScript exclusively within a document, you
don’t have to use this attribute.
Example
How <SPAN CLASS="bolds" LANGUAGE="VBSCRIPT" onClick="MsgBox 'Hi, there!'">bold</B> it is!
Value
JAVASCRIPT
| JSCRIPT
|
VBS
| VBSCRIPT
Default
Although the default scripting language of IE 4 is JScript, no value is automatically assigned to this attribute if the attribute is not included in the tag.
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.