DHTML Events
Fires whenever the ready state for the object has changed.
Inline HTML |
<element onreadyStatechange = "handler" ... > |
All platforms |
Event property |
object.onreadyStatechange = handler |
ECMA-262 Language Specification |
Named script |
<script FOR=object EVENT=onreadyStatechange> |
Internet Explorer® only |
Bubbles |
No |
Cancels |
No |
To invoke |
Change the ready state. |
Default action |
Signals the ready state of the document. |
The readyState property exposes a set of ready states: initializing, interactive, and loaded. The onreadyStatechange event fires whenever the specified ready states change. When an object changes to the loaded state, this event fires immediately before the firing of the onload event.
While event handlers in the Document Object Model do not receive parameters directly, the handler can query the event object for data.
Event Object Properties
srcElement |
Retrieves the object that fired the event. |
type |
Retrieves the event name from the event object. |
APPLET, BDO, document, EMBED, FIELDSET, IMG, LINK, OBJECT, SCRIPT, XML
onload, readyState