JavaScript Reference/Javascript Properties/fileSize
"fileSize" Example
<source lang="javascript">
<html>
<body>
<img id="myImage" src="yourimage.gif">
<button onclick="alert(myImage.fileSize);">Image Size</button>
</body>
</html>
</source>
"fileSize" is applied to
<source lang="javascript">
+----------------+--------------------------------------------------------------+ | Applied_To |document <img> | +----------------+--------------------------------------------------------------+
</source>
"fileSize" Syntax and Note
<source lang="javascript">
Note: Read-only property. Returns the file size in bytes.
Syntax:
document.all.imgID.fileSize document.fileSize
</source>