readyState PropertyRetrieves the current state of the object.SyntaxScripting [ sState = ] object.readyState Possible ValuessState
String that receives one of the following values:uninitialized Object is not initialized with data.
loading Object is loading its data.
loaded Object has finished loading its data. interactive
User can interact with the object even though it is not fully loaded. complete
Object is completely initialized.
The property is read-only. The property has no default value.
String that receives one of the following values:uninitialized Object is not initialized with data.
loading Object is loading its data.
loaded Object has finished loading its data. interactive
User can interact with the object even though it is not fully loaded. complete
Object is completely initialized.
The property is read-only. The property has no default value.
function fnStartInit()
{
if (document.readyState=="complete")
{
// Finish initialization.
}
}