javascript mimeType suffixes
@March 15, 2008, 1:22 a.m.
suffixes | Firefox/Netscape/NN 3 IE 5(Mac) Chrome/Safari/DOM n/a |
Read-only | |
Returns a comma-delimited string list of file suffixes associated with the mimeType object, as supported by the plugin enabled for that MIME type. For example, the suffixes that the QuickTime plugin acknowledges for the type video/avi are: avi, vfw |
|
If you loop through all mimeType objects registered in the browser to find a match for a specific suffix, you can then find out whether the matching mimeType object has a plugin installed for it (via the enabledPlugin property). |
|
Example | |
var suff = navigator.mimeTypes["audio/mpeg"].suffixes; |
|
Value | |
String. |
|
Default | |
None. |
Permanent URL:
http://javascript.gakaa.com/mimetype-suffixes.aspx
Powered by Linode.