downloadTotal Property

Internet Development Index

Retrieves a value that indicates the total size of the file (in bytes) downloaded.

Syntax

HTMLN/A
Scripting[ idownloadTotal = ] object.downloadTotal

Possible Values

idownloadTotalInteger 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>
This feature requires Microsoft?Internet Explorer 6 or later. Click the following icon to install the latest version. Then reload this page to view the sample.

Applies To

t:ANIMATION, t:AUDIO, t:IMG, t:MEDIA, t:REF, t:VIDEO

See Also

Introduction to HTML+TIME