Compartir a través de


downloadTotal Property

This topic documents a feature of HTML+TIME 2.0, which is obsolete as of Windows Internet Explorer 9.

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

Syntax

HTML N/A
Scripting [ idownloadTotal = ] object.downloadTotal

Possible Values

idownloadTotal Integer that receives the total size (in bytes) of the downloaded file.

The property is read-only. The property has no default value.

Remarks

downloadTotal was introduced in Microsoft Internet Explorer 6.

Example

This example demonstrates how to get the size (in bytes) of the downloaded file by 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="https://msdn.microsoft.com/workshop/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>

Code example: http://samples.msdn.microsoft.com/workshop/samples/author/behaviors/downloadtotal.htm

Applies To

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

See Also

Introduction to HTML+TIME