downloadTotal Property | Internet Development Index |
Retrieves a value that indicates the total size of the file (in bytes) downloaded.
Syntax
HTML N/A Scripting [ idownloadTotal = ] object.downloadTotal
Possible Values
idownloadTotal Integer that receives the total size of the file (in bytes) downloaded. The property is read-only. The property has no default value.
Example
This example demonstrates how to retrieve the file size (in bytes) downloaded using the downloadTotal property.
<HTML xmlns:t= "urn:schemas-microsoft-com:time"> <?IMPORT namespace="t" implementation="#default#time2"> <STYLE> .time{behavior:url(#default#time2)} </STYLE> <BODY> <t:video id="mp2" src="http://msdn.microsoft.com../../common/samples/author/behaviors/media/movie.avi"/> <P> DownloadTotal: <SPAN class="time" dur="0.1" repeatCount="indefinite" onrepeat="innerText=mp2.downloadTotal;">0</SPAN> </P> </BODY> </HTML>
Applies To
t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO
See Also
Introduction to HTML+TIME