MimeType : MimeType « Document « JavaScript Tutorial






The MimeType object is a predefined JavaScript object that you access through the mimeTypes array of the Navigator or Plugin object.

MIME stands for Multipart Internet Mail Extension.

Property/MethodDescription
descriptionReturns description of MimeType
enabledPluginReturns plug-in for specific MimeType
suffixesReturns file extension for MimeType
typeReturns string representation of MimeType


<html>
    <head>
    <title> Example of how to determine the available MimeTypes</title>
    </head>
    <body>
    <script language="JavaScript">
    <!--
    for (i=0; i < 3; i++) {
       document.writeln(navigator.mimeTypes[i].type+" ");
       document.writeln(navigator.mimeTypes[i].description+" ");
       document.writeln(navigator.mimeTypes[i].suffixes+" ");
       document.writln("<br>");
    }
    -->
    </script>
    </body>
    </html>








14.19.MimeType
14.19.1.MimeType
14.19.2.MimeType.description
14.19.3.MimeType.enabledPlugin
14.19.4.MimeType.suffixes
14.19.5.MimeType.type