JavaScript Reference/Javascript Collections/mimeTypes

Материал из Web эксперт
Перейти к: навигация, поиск

"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