August 1999
Intermediate to advanced
1488 pages
72h 53m
English
mimetype.description
The description property of the MimeType object is used to obtain a description of the data type described by the MimeType object.
Listing 7.391 shows an example of how the description property is used. A for loop is used to output the suffixes of the first three MimeTypes.
<html> <head> <title> Using the description property of the MimeType object</title> </head> <body> <script language="javascript"> <!---Hide // function prints the suffixes for the first three MimeTypes for (i=0; i < 3; i++) { document.write("MimeType description " + i + " : "); document.writeln(navigator.mimeTypes[i].description); ... |
Read now
Unlock full access