asp.net.ph

Skip Navigation Links

fileSize Property

DHTML Object Properties   DHTML Objects


Retrieves the file size.

Syntax


HTML N/A
Script [ intSize = ] img.fileSize

Possible Values


intSize Integer specifying the file size.

The property is read-only with no default value.

Example

This example code fragment assigns the size ( in bytes ) of the current file to a variable named howBig and displays it in a message box.

var howBig= document.fileSize;
alert ( howBig );

 Show me 

Applies To

document, IMG



>

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note