Windows Dev Center

onload event

Raised when the object has been completely received from the server.

Syntax

HTML Attribute <element onload = "handler(event)">

 

Event information

SynchronousNo
BubblesNo
CancelableNo

 

Event handler parameters

This method has no parameters.

Standards information

There are no standards that apply here.

Remarks

After the onload event has occurred, responseText contains the complete server response.

To invoke this event, do one of the following:

  • Event handlers are called as needed after a request is sent.

Examples

Setting the onload property.



function loadd()
{
    console.log("XDR onload");
    console.log("Got: " + xdr.responseText);
}
...
xdr.onload = loadd;                
                

See also

XDomainRequest
Reference
onprogress

 

 

Show:
© 2015 Microsoft