MimeType

Deprecated

This feature is no longer recommended. Though some browsers might still support it, it may have already been removed from the relevant web standards, may be in the process of being dropped, or may only be kept for compatibility purposes. Avoid using it, and update existing code if possible; see the compatibility table at the bottom of this page to guide your decision. Be aware that this feature may cease to work at any time.

The MimeType interface provides contains information about a MIME type associated with a particular plugin. Navigator.mimeTypes returns an array of this object.

Properties

MimeType.type
Returns the MIME type of the associated plugin.
MimeType.description
Returns a description of the associated plugin or an empty string if there is none.
MimeType.suffixes
A string containing valid file extensions for the data displayed by the plugin, or an empty string if an extension is not valid for the particular module. For example, a browser's content decryption module may appear in the plugin list but support more file extensions than can be anticipated. It might therefore return an empty string.
MimeType.enabledPlugin
Returns an instance of Plugin containing information about the plugin itself.

Specifications

Specification
HTML Standard (HTML)
# mimetype

Browser compatibility

BCD tables only load in the browser