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 and the data format used. The value of the
type property can also be used as an index to
access the elements of the navigator.mimeTypes[]
array.
Description
The MimeType object represents a MIME type (i.e., a data format)
supported by Netscape. The format may be supported directly by the
browser or through an external helper application or a plugin for
embedded data.
Usage
The navigator.mimeTypes[] array may be indexed
numerically or with the name of the desired MIME type (which is the
value of the type property). To check which MIME
types are supported by Netscape, you can loop through each element in
the array numerically. Or, if you just want to check whether a
specific type is supported, you can write code like the following:
var show_movie = (navigator.mimeTypes["video/mpeg"] != null);
See Also
Navigator, Plugin