Javascript Reference
Categories: OBJECT

javascript OBJECT type

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

Read/Write  

Provides an advisory about the MIME type of the external data to be loaded into the object. The browser looks to the type property value if the codeType property is null.

 
Example
 
if (document.getElementById("myObject").type == "image/jpeg") {
    ...
}
 
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.


Powered by Linode.