JavaScript Reference/Javascript Collections/mimeTypes
Версия от 18:30, 25 мая 2010; (обсуждение)
Содержание
"mimeTypes" Example
<html>
<body>
<button onclick="alert(navigator.mimeTypes.length);">length</button>
</body>
</html>
"mimeTypes" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |navigator |
+----------------+--------------------------------------------------------------+
"mimeTypes" JavaScript properties and JavaScript methods
JavaScript properties and JavaScript methods
item(), length
"mimeTypes" Syntax Parameters and Note
Note:
Returns an array of all mimeType objects.
Syntax:
navigator.mimeTypes // returns all mimeTypes
navigator.mimeTypes[param1] // returns an individual mimeType
Parameters:
param1 Required; the zero-based index