Element.language (Property)

The required scripting language for fragments of script associated with this element.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyElement.language
IEmyElement.language = aScriptLanguage
Argument list:aScriptLanguageOne of the available scripting languages

This does not affect scripting contained within script tags, but provides a way to select a script language interpreter for use with event handlers for example.

The following scripting languages are supported in MSIE (Netscape does not support this facility):

The values are case-insensitive in the MSIE browser.

With this property available, it is conceivable that other languages could be supported in the future. For example, client-side Perl and Python are feasible. Search out the PerlScript and ActivePython projects for further details.

See also:<SCRIPT LANGUAGE="...">, Element object