MimeType.suffixes
JavaScript 1.1+ Nav3+ Syntax
mimetype.suffixes
Description
The suffixes property of the MimeType object is used to obtain a string listing the possible file suffixes or filename extensions for the MIME type.
Example
Listing 7.393 shows an example of how the suffixes property is used. A for loop is used to output the first three suffix values.
Listing 7.393 Accessing the suffixes Property
<html> <head> <title> Using the suffixes 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 suffix " + i + " : "); document.writeln(navigator.mimeTypes[i].suffixes); document.write("<br>"); ... |
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.