JavaScript Reference/Javascript Properties/fileSize
Версия от 18:30, 25 мая 2010; (обсуждение)
"fileSize" Example
<html>
<body>
<img id="myImage" src="yourimage.gif"><br>
<button onclick="alert(myImage.fileSize);">Image Size</button>
</body>
</html>
"fileSize" is applied to
+----------------+--------------------------------------------------------------+
| Applied_To |document <img> |
+----------------+--------------------------------------------------------------+
"fileSize" Syntax and Note
Note:
Read-only property.
Returns the file size in bytes.
Syntax:
document.all.imgID.fileSize
document.fileSize