CODETYPE Attribute | codeType Property

Internet Development Index

Sets or retrieves the Internet media type for the code associated with the object.

Syntax

HTML<OBJECT CODETYPE = sType... >
ScriptingOBJECT.codeType [ = sType ]

Possible Values

sTypeString that specifies or receives the media type.

The property is read/write. The property has no default value.

Expressions can be used in place of the preceding value(s), as of Microsoft® Internet Explorer 5. For more information, see About Dynamic Properties.

Remarks

Internet media types are also known as MIME types.

The codeType property is read-only for any pre-existing object in an HTML document. For instances of objects that are created in script, the codeType property is read/write-once, because the codeType property is written when an object is created. After an instance of an object is created, the codeType property is read-only.

Standards Information

This property is defined in HTML 4.0 Non-Microsoft link and is defined in World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 Non-Microsoft link.

Applies To

OBJECT

See Also

MIME Type Detection in Internet Explorer