Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

codetype attribute | codeType property

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


HTML<element codetype="p" ... >

p = object.codeType


Property values

Type: String

the media type.


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.

See also

MIME Type Detection in Internet Explorer



© 2015 Microsoft