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 type | MSIE expanded Mime type |
---|---|
.css | Microsoft CSS1 Style Sheet (W3C would have been more appropriate) |
.gif | GIF Image |
.htc | Microsoft HTML Component file for behaviours |
.htm | Microsoft HTML Document 4.0 |
.html | Microsoft HTML Document 4.0 |
.jpg | JPEG Image |
.js | Microsoft JScript File (this is a bit presumptuous) |
.txt | Text Document |
.vbs | Microsoft VBScript File |
.xxx | All 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 |
Prev | Home | Next |
Url.Methods | Up | Url.name |
JavaScript Programmer's Reference, Cliff Wootton Wrox Press (www.wrox.com) Join the Wrox JavaScript forum at p2p.wrox.com Please report problems to support@wrox.com © 2001 Wrox Press. All Rights Reserved. Terms and conditions. |