[This documentation is preliminary and is subject to change.]
Raised when the object has been completely received from the server.
![]() |
Syntax
| HTML Attribute | <element onload = "handler(event)"> |
|---|---|
| Event Property | object.onload = handler; |
| attachEvent Method | object.attachEvent("onload", handler) |
Standards information
There are no standards that apply here.
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
Event handler parameters
This method has no parameters.
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()
{
alert("XDR onload");
alert("Got: " + xdr.responseText);
}
...
xdr.onload = loadd;
See also
- XDomainRequest
- XDomainRequest Constructor
- Reference
- onprogress
- Conceptual
- XMLHttpRequest Enhancements in Internet Explorer 8
Build date: 2/14/2012

