Name

CODETYPE — NN n/a IE 3 HTML 4

Synopsis

CODETYPE=”MIMEType"

Optional

An advisory about the content type of the object referred to by the CLASSID attribute. A browser might use this information to assist in preparing support for a resource requiring a multimedia player or plugin. If the CODETYPE attribute is missing, the browser looks next for the TYPE attribute setting (although it is normally associated with content linked by the DATA attribute URL). If both attributes are missing, the browser gets the content type information from the resource as it downloads.

Example

<OBJECT CLASSID="clsid:83A38BF0-B33A-A4FF-C619A82E891D" 
CODETYPE="application/x-crossword">
</OBJECT>

Value

Case-insensitive MIME type. A catalog of registered MIME types is available from ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/.

Default

None.

Object Model Reference

IE

[window.]document.all.elementID.codeType

Get Dynamic HTML: The Definitive Reference now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.