JavaScript Reference/Javascript Objects/mimeType — различия между версиями
Admin (обсуждение | вклад) м (1 версия) |
|
(нет различий)
|
Текущая версия на 11:22, 26 мая 2010
Содержание
"mimeType" Example
<source lang="javascript">
<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>
</source>
"mimeType" is applied to
<source lang="javascript">
Names noted with an asterisk (*) are JavaScript properties only. +----------------+--------------------------------------------------------------+ | Applied_To |mimeTypes* | +----------------+--------------------------------------------------------------+
</source>
"mimeType" JavaScript Properties
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | JavaScript |description suffixes | | Properties |type | +----------------+--------------------------------------------------------------+
</source>
"mimeType" Syntax and Note
<source lang="javascript">
Note: Provide information about the MIME type in the navigator object"s mimeTypes array.
Syntax:
navigator.mimeTypes[index].memberName
</source>