Show Browser Mime type (Firefox) : Mime Type « HTML « JavaScript DHTML






Show Browser Mime type (Firefox)

<html>
<head>
<script language="JavaScript">
<!--
   var htmlString= "MIME types <form><select size=25>";
   function showTypes() {
      for (var i=0; i < navigator.mimeTypes.length; i++)
          htmlString += "<option>" + navigator.mimeTypes[i].type;
      htmlString += "</select></form>";
      document.write(htmlString);
   }
//-->
</script>
</head>
<body onLoad="showTypes()">
</body>
</html>

 

           
       








Related examples in the same category

1.Using the mimeTypes Object
2.Verifying a MIME Type
3.Verifying Plug-in and MIME Type
4. Properties of the Mimetype Object