DOM:document.contentType
From MDC
Contents |
[edit] Summary
Returns the Content-Type from the HTTP headers of the document.
[edit] Syntax
contentType = document.contentType;
contentType is a read-only property.
[edit] Notes
The property returns the MIME property "Content-Type" set in the HTTP Header and not the META property set in the HEAD section of the document.
[edit] Specification
Non-standard, only supported by Gecko. To be used in chrome code (i.e. Extensions and XUL applications).