mimeTypeNN 3 IE 5(Mac) DOM n/a  

  

The mimeType object belongs to the navigator object. The object represents a MIME type specification. Its properties let scripts find out if the browser is equipped to handle a specific MIME type of external content before it is loaded from the server. All these properties are mirrored in the internal document displayed when you choose Navigator's About Plug-ins menu option. Internet Explorer 5 for the Macintosh implements this scheme, but Explorer for Windows uses an entirely different system for determining support for external media via the object element.

 
Object Model Reference
 
navigator.mimeTypes[i]
 
Object-Specific Properties
 
descriptionenabledPluginsuffixestype
 
Object-Specific Methods

None.

 
Object-Specific Event Handler Properties

None.

descriptionNN 3 IE 5(Mac) DOM n/a  

Read-only  

Returns the brief description of the plugin. This information is embedded in the plugin by its developer. Be aware that the precise wording of this description may vary for the same plugin written for different operating systems.

 
Example
 
var descr = navigator.mimeTypes["video/mpeg"].description;
 
Value

String.

 
Default

None.

enabledPluginNN 3 IE 5(Mac) DOM n/a  

Read-only  

Returns a plugin object reference corresponding to the plugin currently set to play any incoming data formatted according to the current MIME type. You can then dig deeper into properties of the returned plugin object to retrieve, say, its name.

 
Example
 
var plugName = navigator.mimeTypes["video/mpeg"].enabledPlugin.name;
 
Value

plugin object reference.

 
Default

None.

suffixesNN 3 IE 5(Mac) DOM n/a  

Read-only  

Returns a comma-delimited string list of file suffixes associated with the mimeType object, as supported by the plugin enabled for that MIME type. For example, the suffixes that the QuickTime plugin acknowledges for the type video/avi are:

If you loop through all mimeType objects registered in the browser to find a match for a specific suffix, you can then find out whether the matching mimeType object has a plugin installed for it (via the enabledPlugin property).

 
Example
 
var suff = navigator.mimeTypes["audio/mpeg"].suffixes;
 
Value

String.

 
Default

None.

typeNN 3 IE 5(Mac) DOM n/a  

Read-only  

Returns a string version of the MIME type associated with the mimeType object. You could, for example, loop through all the mimeType objects in search of the one that matches a specific MIME type (application/x-midi) and examine that mimeType object further to see whether it is currently supported and enabled.

 
Example
 
var MType = navigator.mimeTypes[3].type;
 
Value

String.

 
Default

None.