Note: EdgeHTML Mode does not provide the mimeType attribute for the HTMLImageElement interface.

mimeType of type DOMString

Retrieves the MIME type for the file.

Returns the registered file type of the image or anchor's target. If the object hasn't loaded yet, the empty string is returned. The file type string returned need not be a standard MIME type.

This is a DOM attribute only.

The mimeType attribute extends the following interfaces:

All Document Modes (All Versions)

Quirks Mode, IE7 Mode, IE8 Mode, IE9 Mode, IE10 Mode, IE11 Mode, and EdgeHTML Mode (All Versions)

  • HTMLImageElement