type property
Gets the scripting language for the given script element.
![]() ![]() |
Syntax
| JavaScript |
|---|
p = object.type |
Property values
Type: Number
A MIME media type.
Standards information
- Scalable Vector Graphics: Scripting, Section 18.5.1
Remarks
If you do not provide a type property, the value of contentScriptType on the svg element is used, which defaults to application/ecmascript. If a script element falls outside of the outermost svg element and you do not provide the type attribute, the value of contentScriptType on the script element defaults to application/ecmascript.
See also
Show:

