OBJECT.codeType (Property)

A description of the type of code in the object referred to by the CLASSID="..." HTML tag attribute.


DOM level - 1
JavaScript - 1.5
JScript - 3.0
Internet Explorer - 4.0
Netscape - 6.0
Property/method value type:String primitive
JavaScript syntax:-myOBJECT.codeType

This is a MIME type value that describes the kind of code being embedded by the <OBJECT> tag.

There is conflicting information in the reference sources regarding the read/write ability of this property. Some suggest it is ReadOnly and others suggest you can assign a value to it. It may be that you can assign a value to it without the JavaScript interpreter complaining but that any value you assign is ignored.

See also:MIME types