onload event
Raised when the object has been completely received from the server.
![]() |
Syntax
| HTML Attribute | <element onload = "handler(event)"> |
|---|---|
| attachEvent Method | object.attachEvent("onload", handler) |
Event information
| Synchronous | No |
|---|---|
| Bubbles | No |
| Cancelable | No |
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() { alert("XDR onload"); alert("Got: " + xdr.responseText); } ... xdr.onload = loadd;
See also
- XDomainRequest
- Reference
- onprogress
- Conceptual
- XMLHttpRequest Enhancements in Internet Explorer 8
Show:
