javascript IMG mimeType
@March 15, 2008, 1:22 a.m.
mimeType | Firefox/Netscape/NN n/a IE 6(Win) Chrome/Safari/DOM n/a |
Read-only | |
Returns a plain-language description of the MIME type for the image. This property may not be officially supported by Microsoft, but it correctly reports values for typical image types served from both local disks and servers. |
|
Example | |
if (document.productImage.mimeType.indexOf("JPEG") != -1) { // process condition for jpeg image } |
|
Value | |
String value such as JPEG Image or GIF Image. |
|
Default | |
None. |
Permanent URL:
http://javascript.gakaa.com/img-mimetype.aspx
Powered by Linode.