SCRIPT.type (Property)

The MIME type of the <SCRIPT> block's content.

Availability:

DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-mySCRIPT.type
HTML syntax:<SCRIPT TYPE="...">

The MIME type of the script object is accessible through the value of this property.

Refer to the MIME type topic for details of the available MIME types you will likely see in this property.

Warnings:

See also:<SCRIPT TYPE="...">, <STYLE TYPE="...">, StyleSheet.type

Property attributes:

ReadOnly.