type attribute | type property
Sets or retrieves the MIME type for the associated scripting engine.
Syntax
| HTML | <element type="p" ... > |
|---|---|
| JavaScript | |
Property values
Type: String
text/ecmascript
-
ECMAScript.
text/Jscript
-
JScript.
text/javascript
-
Default. JScript.
text/vbs
-
VBScript.
text/vbscript
-
VBScript (same as text/vbs).
text/xml
-
XML.
Remarks
Compare this property with the language property. To avoid conflict, match the type with the language type specified in the language property.
See also
Send comments about this topic to Microsoft
Build date: 11/28/2012