readyState Property

See Also      Tasks      Applies To

Returns information about the load state of a DHTML scriptlet hosted in the container object.

Syntax

ScriptContainer.readyState = integer

Remarks

This property is read-only. It is available only at run time.

The readyState property returns an integer value between 1 and 4 indicating the load state of the scriptlet, with the following values:

Value Definition
1 or 2 Undefined
3 Scriptlet text has been loaded, but controls on the scriptlet's HTML page might not yet be functional.
4 Scriptlet is completely loaded

In general, you should not attempt to access the scriptlet's functionality before the readyState property is set to 4. You can check the value of this property in a handler for the onreadystatechange event.