onload event

ProgressEvent that occurs when a read operation by an MSStreamReader or FileReader object successfully completes.

Internet Explorer 10

 

Syntax

Event Property object.onload = handler;
addEventListener Method object.addEventListener("onload", handler, useCapture)

 

Event handler parameters

handler [in]

Type: function

Handler function to process the load event.

Remarks

If the operation fails, onload doesn't fire. Instead the onerror event fires and then the onloadend event fires.

When this event fires the lengthComputable property of the ProgressEvent is set to true. The length property of the ProgressEvent is set to the number of bytes read. The total property of the ProgressEvent is set to the number of bytes read and equals the value of the length property.

See also

FileReader
MSStreamReader
ProgressEvent
onprogress

 

 

Show:
© 2014 Microsoft