Name
mimeType — NN n/a IE 4 DOM n/a
Synopsis
Read-only
Returns a plain-language version of the MIME type of the destination
document at the other end of the link specified by the
HREF
or SRC
attribute. You
could use this information to set the cursor type during a mouse
rollover. Do not confuse this property with the
navigator.mimeTypes[]
array and individual
mimeType
objects that Netscape Navigator refers
to. Not available in IE 4/Macintosh.
Example
if (document.all.myLink.mimeType == "GIF Image") { ... }
Value
A plain-language reference to the MIME type as a 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.