JavaScript DHTML/Javascript Objects/mimeType

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

"description" 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>



"suffixes" Example

    
<html>
<body>
<button onclick="alert(navigator.mimeTypes[0].description);">mime</button>
<button onclick="alert(navigator.mimeTypes[0].suffixes);">suffixes</button>
<button onclick="alert(navigator.mimeTypes[0].type);">Type</button>
</body>
</html>



"type" Example

    
<html>
<body>
<button onclick="alert(navigator.mimeTypes[0].description);">mime</button>
<button onclick="alert(navigator.mimeTypes[0].suffixes);">suffixes</button>
<button onclick="alert(navigator.mimeTypes[0].type);">Type</button>
</body>
</html>