This property returns the ready state of the document. If the document loading is
asynchronously, the ready state must be checked before using methods and properties
that access the DOM. The ready state is returned back as one of the EReadyState
values.
See EReadyState for
more information.
function ShowInnerText()
{
var htmlBox = scene.getBoxById("myHtmlBox");
if (htmlBox)
{
if (htmlBox.readyState == 3)
{
var text = htmlBox.dom.body.innerText;
shell.print("Inner Text: " + text);
}
}
}