Javascript Reference
Categories: OBJECT

javascript OBJECT codeType

@March 15, 2008, 1:22 a.m.
codeTypeFirefox/Netscape/NN 6 IE 4 Chrome/Safari/DOM 1  


Provides 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 property is set to an empty string, 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 have no (or empty) values set, the browser gets the content type information from the resource as it downloads.

document.getElementById("gameTime").codeType = "application/x-crossword";

Case-insensitive MIME type. A catalog of registered MIME types is available from



Powered by Linode.