MimeType ObjectNameMimeType Object---represents a MIME datatypeAvailabilityNavigator 3.0 Synopsis
navigator.mimeTypes[i] navigator.mimeTypes["name"] navigator.mimeTypes.length Properties
DescriptionThe MimeType object represents a MIME type (i.e., a data format) supported by the browser. The format may be supported directly by the browser, or may be supported through an external "helper application," or a plug-in for embedded data. UsageThe navigator.mimeTypes[] array may be indexed numerically, or with the name of the desired MIME type (which is the value of the type property). In order to check which MIME types are supported by the browser, 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); |
|