DHTML Object Properties DHTML Objects
Retrieves the file size.
HTML |
N/A |
Script |
[ intSize = ] img.fileSize |
intSize |
Integer specifying the file size. |
The property is read-only with no default value.
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
document, IMG