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/Method | Description |
description | Returns description of MimeType |
enabledPlugin | Returns plug-in for specific MimeType |
suffixes | Returns file extension for MimeType |
type | Returns 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>