asp.net.ph

Skip Navigation Links

TYPE Attribute | type Property

Language References


Retrieves the MIME type for the associated scripting engine.

Syntax


Inline <script TYPE = 'text/ecmascript' | 'text/Jscript' | 'text/javascript' | 'text/vbs' | 'text/vbscript' | 'text/xml'... >
Script [ sType = ] script.type

Possible Values


text/ecmascript Specifies the language as ECMAScript.
text/Jscript Specifies the language as JScript™ ( compatible with ECMA-262 language specification ).
text/javascript Specifies that the script is written in JavaScript.
text/vbs Specifies the language as VBScript.
text/vbscript Specifies the language as VBScript ( same as text/vbs ).
text/xml Specifies the language as XML.

The property is read-only with no default value.

Remarks

The property can refer to any scripting language. Microsoft® Internet Explorer® 4.0 ships with a JScript, VBScript, and XML scripting engine.

To avoid conflict, the type should match the language type specified in the language property.

Applies To

SCRIPT



© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note