language attribute | language property
[This documentation is preliminary and is subject to change.]
Sets or retrieves the language in which the current script is written.
Syntax
| HTML | <element language="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
JScript
-
Language is JScript.
javascript
-
Script is JavaScript.
vbs
-
Language is VBScript.
vbscript
-
Script is VBScript.
XML
-
Script is XML.
language
-
Browser-supported language.
Standards information
- HTML 4.01 Specification, Section 18.2.1 (Deprecated)
Remarks
The language property can refer to any scripting language.
In Windows Internet Explorer, the default scripting engine is JScript.
Microsoft Internet Explorer 4.0 ships with scripting engines for JScript and VBScript.
In Microsoft Internet Explorer 5, the LANGUAGE attribute of the script element can be set to XML.
Build date: 3/8/2012