ReadyState Property
ReadyState property as it applies to the FPHTMLObjectElement and IHTMLObjectElement objects.
Returns a Long that represents the state of the object.
expression.ReadyState
*expression * Required. An expression that returns one of the above objects.
ReadyState property as it applies to the FPHTMLDocument, FPHTMLImg, FPHTMLInputImage, FPHTMLLinkElement, FPHTMLScriptElement, FPHTMLStyleElement, FPHTMLTable, IHTMLDocument2, IHTMLImgElement, IHTMLInputImage, IHTMLLinkElement, IHTMLScriptElement, IHTMLStyleElement, and IHTMLTable objects.
Returns a String that represents the state of the specified object.
expression.ReadyState
*expression * Required. An expression that returns one of the above objects.
Remarks
The ReadyState property is especially useful with long documents that contain a lot of pictures or markup tags that take time to load. Generally, the ReadyState property will return the String "complete." However, with long documents, you may get the following String values:
complete |
Object is completely initialized. |
interactive |
User can interact with the object even though it is not fully loaded. |
loaded |
Object has finished loading its data. |
loading |
Object is loading its data. |
uninitialized |
Object is not initialized with data. |
Example
As it applies to the FPHTMLDocument object.
The following example monitors the state of the document in the active page window and allows FrontPage to do other things until the large document has completely loaded.
Do While ActivePageWindow.Document.ReadyState <> "complete"
DoEvents
Loop
Applies to | FPHTMLDocument Object | FPHTMLImg Object | FPHTMLInputImage Object | FPHTMLLinkElement Object | FPHTMLObjectElement Object | FPHTMLScriptElement Object | FPHTMLStyleElement Object | FPHTMLTable Object | IHTMLDocument2 Object | IHTMLImgElement Object | IHTMLInputImage Object | IHTMLLinkElement Object | IHTMLObjectElement Object | IHTMLScriptElement Object | IHTMLStyleElement Object | IHTMLTable Object