August 1999
Intermediate to advanced
1488 pages
72h 53m
English
navigator.mimeTypes
The mimeTypes property of the navigator object is used to obtain a list of all the MIME types supported by the browser. The returned object is an array containing all supported MIME types. The mimetypes array contains all the properties of the Array object.
Listing 7.401 shows an example of how the mimeTypes property is used.
<html> <head> <title> Example of the mimetypes property of the navigator object</title> </head> <body> <script language="JavaScript"> <!--Hide // output the navigator mimeTypes length property document.write(navigator.mimeTypes.length); // End Hide ---> </script> </body> ... |
Read now
Unlock full access