Package | dom.objects |
Class | public class MimeType |
Inheritance | MimeType Object |
Introduced in: | DOM 0 |
See also
Property | Defined By | ||
---|---|---|---|
DOM 0 description : DOMString [read-only]
A description of the MIME type. | MimeType | ||
DOM 0 enabledPlugin : Plugin [read-only]
Reference to the Plugin object configured for the MIME type. | MimeType | ||
DOM 0 suffixes : DOMString [read-only]
A string listing possible filename extensions for the MIME type, for example "mpeg, mpg, mpe, mpv, vbs, mpegv". | MimeType | ||
DOM 0 type : DOMString [read-only]
The name of the MIME type, for example "video/mpeg" or "audio/x-wav". | MimeType |
DOM 0 description | property |
description:DOMString
[read-only] Introduced in: | DOM 0 |
A description of the MIME type.
public function get description():DOMString
See also
"Adobe Flash movie"
DOM 0 enabledPlugin | property |
enabledPlugin:Plugin
[read-only] Introduced in: | DOM 0 |
Reference to the Plugin object configured for the MIME type.
public function get enabledPlugin():Plugin
See also
// Can we display Shockwave movies? var mimetype = navigator.mimeTypes["application/x-director"]; if (mimetype) { // Yes, so can we display with a plug-in? var plugin = mimetype.enabledPlugin; if (plugin) { // Yes, so show the data in-line document.writeln("Here's a movie: <EMBED SRC=mymovie.dir HEIGHT=100 WIDTH=100>"); } else { // No, so provide a link to the data document.writeln("<A HREF='mymovie.dir'>Click here</A> to see a movie."); } } else { // No, so tell them so document.writeln("Sorry, can't show you this cool movie."); }
DOM 0 suffixes | property |
suffixes:DOMString
[read-only] Introduced in: | DOM 0 |
A string listing possible filename extensions for the MIME type, for example "mpeg, mpg, mpe, mpv, vbs, mpegv".
public function get suffixes():DOMString
See also
"swf"
DOM 0 type | property |
type:DOMString
[read-only] Introduced in: | DOM 0 |
The name of the MIME type, for example "video/mpeg" or "audio/x-wav".
public function get type():DOMString
See also
"application/x-shockwave-flash"