Url.mimeType (Property)

The MIME type used to access the document pointed at by the URL.


JScript - 3.0
Internet Explorer - 4.0
Property/method value type:String primitive
JavaScript syntax:IEmyUrl.mimeType

The MSIE browser maps the file extension of the file belonging to the anchor to an extended description of the file format, which it makes available through the mimeType property. Here is a list of some mimeType values it pays special attention to.

File typeMSIE expanded Mime type
.cssMicrosoft CSS1 Style Sheet (W3C would have been more appropriate)
.gifGIF Image
.htcMicrosoft HTML Component file for behaviours
.htmMicrosoft HTML Document 4.0
.htmlMicrosoft HTML Document 4.0
.jpgJPEG Image
.jsMicrosoft JScript File (this is a bit presumptuous)
.txtText Document
.vbsMicrosoft VBScript File
.xxxAll unrecognized file types are returned as xxx File with no further expansion

Microsoft assert that .htm and .html files are "Microsoft HTML" and .css files are "Microsoft CSS1" style sheets. They also assert that .js files are "Microsoft JScript" files. This is not strictly true because they don't own those file extensions across all platforms, nor indeed do they even own them on the Windows platform.

See also:Anchor.mimeType