August 1999
Intermediate to advanced
1488 pages
72h 53m
English
mimetype.suffixes
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.
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.
<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>"); ... |
Read now
Unlock full access