| Availability: |
| |||||
| JavaScript syntax: | - | myMimeType = myWindow.navigator.mimeTypes[anIndex] | ||||
| - | myMimeType = navigator.mimeTypes[anIndex] | |||||
| - | myMimeType = myMimeTypeArray[anIndex] | |||||
| Argument list: | anIndex | A reference to an element in a collection | ||||
| Object properties: | description, enabledPlugin, name, suffixes, type | |||||
| Collections: | suffixes[] | |||||
// List the available mimeTypes in Netscape
for(ii=0; ii<navigator.mimeTypes.length; ii++)
{
document.write(navigator.mimeTypes[ii].suffixes);
document.write(" - ");
document.write(navigator.mimeTypes[ii].type);
document.write(" - ");
document.write(navigator.mimeTypes[ii].description);
document.write(" - ");
if(navigator.mimeTypes[ii].enabledPlugin)
{
document.write(navigator.mimeTypes[ii].enabledPlugin.name);
}
else
{
document.write("<no_plugin>");
}
document.write("<BR>");
}| See also: | MIME types, MimeTypeArray object, Navigator.mimeTypes[] |
| Property | JavaScript | JScript | N | IE | Opera | NES | ECMA | DOM | CSS | HTML | Notes |
|---|---|---|---|---|---|---|---|---|---|---|---|
| description | 1.1 ![]() | 3.0 ![]() | 3.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| enabledPlugin | 1.1 ![]() | 3.0 ![]() | 3.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| name | 1.5 ![]() | 5.0 ![]() | 6.0 ![]() | 5.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| suffixes | 1.1 ![]() | 3.0 ![]() | 3.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | - |
| type | 1.1 ![]() | 3.0 ![]() | 3.0 ![]() | 4.0 ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ReadOnly. |
| Prev | Home | Next |
| MIME types | Up | MimeType.description |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. | ||