Javascript Reference
Categories: A

javascript A type

@March 15, 2008, 1:22 a.m.

type Firefox/Netscape/NN 6 IE 6 Chrome/Safari/DOM 1  

Read/Write  

This is the MIME type of the destination document at the other end of the link specified by the href attribute. A browser might use this information to assist in preparing support for a resource requiring a multimedia player or plugin.

 
Example
 
if (document.getElementById("myLink").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.