Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

codetype attribute | codeType property

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

Syntax

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

p = object.codeType

 

Property values

Type: String

the media type.

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.

See also

object
MIME Type Detection in Internet Explorer

 

 

Show:
© 2017 Microsoft