onload event (Internet Explorer)

Switch View :
ScriptFree
onload event

[This documentation is preliminary and is subject to change.]

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

Internet Explorer 8

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

SynchronousNo
BubblesNo
CancelableNo

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