Javascript Reference
Categories: document

javascript document mimeType

@March 15, 2008, 1:22 a.m.
mimeType Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a

Read-only

Returns a string indicating the basic document type, but not in a MIME format. For an HTML document, the string returned changed starting with IE 5.5 to HTML Document. Do not confuse this document object property with the Netscape and IE/Mac navigator.mimeTypes property, which is an entirely different animal.

 
Example
 
var what = document.mimeType;
 
Value

String.

 
Default

"HTML Document"


Powered by Linode.