Sets or retrieves the Internet media type for the code associated with the object.
dhtml语法
HTML | <OBJECT CODETYPE
= sType... >
|
---|
Scripting | OBJECT.codeType [ = sType ] |
---|
DHTML可能的值
sType | String 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.
是否符合公共标准
This property is defined in
HTML 4.0 and
is defined in
World Wide Web Consortium (W3C) Document Object Model (DOM) Level 1 .
Applies To
更多语法参考
MIME Type Detection in Internet Explorer