Mega Code Archive

 
Categories / JavaScript Tutorial / Document
 

MimeType

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>