MimeType.description

JavaScript 1.1+ Nav3+ Syntax

							mimetype.description

Description

The description property of the MimeType object is used to obtain a description of the data type described by the MimeType object.

Example

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.

Listing 7.391 Accessing the description Property
 <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); ...

Get Pure JavaScript now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.