MimeType

JavaScript 1.1+ Nav3+ Syntax

Core client-side JavaScript object.

Description

The MimeType object is a predefined JavaScript object that you access through the mimeTypes array of the Navigator or Plugin object. MIME stands for Multipart Internet Mail Extension. Table 7.35 shows the different methods and properties of the MimeType object.

Table 7.35. Properties and Methods of the MimeType Object
Property/Method Description
description Returns description of MimeType
enabledPlugin Returns plug-in for specific MimeType
suffixes Returns file extension for MimeType
type Returns string representation of MimeType

Example

Listing 7.390 shows an example of accessing a MimeType though the mimeTypes array. It prints out a ...

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.