Name

suffixes — NN 3 IE n/a DOM n/a

Synopsis

Read-only

Returns a comma-delimited string list of file suffixes associated with the mimeType object. For example, the MIME type associated with Macromedia Shockwave knows about three suffixes. The suffixes property value for that mimeType object is:

dcr, dir, dxr

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[14].suffixes

Value

String.

Default

None.

Get Dynamic HTML: The Definitive Reference 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.