JavaScript Reference/Javascript Objects/mimeType
Содержание
"mimeType" Example
<html>
<body>
<button onclick="alert(navigator.mimeTypes[0].description);">mimetype</button>
<button onclick="alert(navigator.mimeTypes[0].suffixes);">suffixes</button>
<button onclick="alert(navigator.mimeTypes[0].type);">type</button>
</body>
</html>
"mimeType" is applied to
Names noted with an asterisk (*) are JavaScript properties only.
+----------------+--------------------------------------------------------------+
| Applied_To |mimeTypes* |
+----------------+--------------------------------------------------------------+
"mimeType" JavaScript Properties
+----------------+--------------------------------------------------------------+
| JavaScript |description suffixes |
| Properties |type |
+----------------+--------------------------------------------------------------+
"mimeType" Syntax and Note
Note:
Provide information about the MIME type in the navigator object"s mimeTypes array.
Syntax:
navigator.mimeTypes[index].memberName