language

Jump to: navigation, search

language


Deprecated

Summary

Use the type attribute instead. Specifies the language of the script to be evaluated. May be omitted when using ECMAScript (also known as JavaScript).


Applies to dom/HTMLScriptElement

Needs Examples: This section should include examples.

Usage

Use this attribute only when you want the browser to evaluate the script in a language or a version of the language other than the default. If the browser does not support the specified language or version of the language, the script will not be evaluated.

Notes

  • See the lang attribute if you want to declare the natural language of your content, eg. French, etc.
  • When a type attribute is also specified, it takes precedence over this attribute and this attribute will be ignored.


Compatibility

Desktop

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari
Basic support ? ? ? ? ?

Mobile

Feature Android BlackBerry Chrome for mobile Firefox Mobile (Gecko) IE Mobile Opera Mobile Opera Mini Safari Mobile
Basic support ? ? ? ? ? ? ? ?


Compatibility notes

Browser Version Note
Internet Explorer The default language is JScript (an implementation of ECMAScript, also known as JavaScript).
Internet Explorer 4 - 9 Include a JScript engine, as well as a VBScript engine.
Internet Explorer 5 Accepts a value of "XML".
Mozilla Firefox Accepts "JavaScript", or a value that features a specific version, like "JavaScript1.5".

Attribution

This article contains content originally from external sources.

Portions of this content come from the Microsoft Developer Network: [Windows Internet Explorer API reference Article]