javascript IMG mimeType

mimeTypeNN n/a IE 6(Win) 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.


990,Nickname,Homepage or email,Comments here,Add comment