25.204. MimeType: represents a MIME datatypeJavaScript 1.1; not supported by IE: Object MimeType25.204.1. Synopsisnavigator.mimeTypes[i] navigator.mimeTypes["type"] navigator.mimeTypes.length 25.204.2. Properties
25.204.3. DescriptionThe MimeType object represents a MIME type (i.e., a data format) supported by a web browser. The format may be supported directly by the browser, or through an external helper application or a plug-in for embedded data. MimeType objects are members of the mimeTypes[] array of the Navigator object. In IE, the mimeTypes[] array is always empty, and there is no equivalent of this functionality. 25.204.4. 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). To check which MIME types are supported by a 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); 25.204.5. See AlsoNavigator, Plugin |