Name

type — NN n/a IE 4 DOM 1

Synopsis

Read/Write

An advisory about the MIME type of the external data to be loaded into the object. The browser looks to the type property value if the codeType property is null.

Example

if (document.all.myObject.type ==  "image/jpeg") {
    ...
}

Value

Case-insensitive MIME type. A catalog of registered MIME types is available from ftp://ftp.isi.edu/in-notes/iana/assignments/media-types/.

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.