onReadyStateChange (Event handler)

An object in the window has changed its ready state.

Availability:

JScript - 3.0
Internet Explorer - 4.0
Property/method value type:Boolean primitive
JavaScript syntax:IEmyObject.onreadystatechange = aHandler
HTML syntax:<HTMLTag onReadyStateChange="...">
Argument list:aHandlerA reference to a function object to handle the event

This event fires when the state of the object has changed.

Some objects may need to be completely loaded before you can properly interact with them. This is a means of getting a call-back when the ready state of an object changes. It saves the need for watching the readyState in a polling loop, which is wasteful of resources and a generally deprecated technique.

See also:Document.readyState, Element.readyState, Embed.readyState, Event, Event handler, Event model, Event names, Event object, Event.returnValue, Handler, IMG.readyState, LINK.readyState, OBJECT.readyState, SCRIPT.readyState, Semantic event, STYLE.readyState, XML.event

Supported by objects:

APPLET

AREA

Document

LINK

OBJECT

SCRIPT

STYLE