Document.fileSize (Property)

The size in bytes of the file that was received by the browser.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Number primitive
JavaScript syntax:IEmyDocument.fileSize

This is the exact length of the received HTTP body portion of the document. This does not count any HTTP headers that the web server may have sent prior to the HTTP body. If you edit a document in a text file and then load it into the web browser, this is the exact length of that text file in characters.

On the Macintosh operating system, some text editors hide additional resource data in the file. This is not included and on that platform, the fileSize property is a measurement of the data fork of the file and does not include the resource fork.

See also:Document object, IMG.fileSize

Property attributes:

ReadOnly.