Name
MimeType — represents a MIME data type
Availability
Netscape 3
Synopsis
navigator.mimeTypes[i
] navigator.mimeTypes["type
"] navigator.mimeTypes.length
Properties
-
description
A read/only string that provides a human-readable description (in English) of the data type described by the MimeType. This description is more explicit and understandable than the
name
property.-
enabledPlugin
A read-only reference to a Plugin object that represents the installed and enabled plugin that handles the specified MIME type. If the MIME type is not handled by any plugins, the value of this property is
null
.
The navigator.mimeType[]
array tells you whether a
given MIME type is supported by the browser. The
enabledPlugin
property of the MimeType object,
however, tells you whether a particular supported type is supported
with a plugin (MIME types can also be supported with helper
applications, or directly by the browser). If a MIME type is
supported by a plugin, data of that type can be embedded in a web
page with the <embed>
tag.
-
suffixes
A read-only string that contains a comma-separated list of filename suffixes (not including the “.” character) that are commonly used with files of the specified MIME type. For example, the suffixes for the
text/html
MIME type are “html, htm”.-
type
A read-only string that specifies the name of the MIME type. This is a unique string such as “text/html” or “image/jpeg” that distinguishes this MIME type from all others. It describes the general type of data ...
Get JavaScript: The Definitive Guide, Fourth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.