DocumentManager1.0

back

Commands

Events

DocumentManager provides a way to monitor, and interact with individual documents/frames in a document tree (whether they have an ECMASCript environment or not).

Example functionality includes loading URLs in a certain frame, and enumerating all the documents in a certain Window.

ID fields

External ID fields

Some IDs used in this service originate (and can be used with) other services.

ListDocuments

Get the document tree for a Window, or for all Windows.

command ListDocuments(ListDocumentsArg)
{
}
returns (DocumentList)
{
}
= 1;

LoadDocument

Load a URL in a specified frame.

command LoadDocument(LoadDocumentArg)
{
}
returns (Default)
{
}
= 2;

ReloadDocument

Reload the current URL for a specified frame.

command ReloadDocument(ReloadDocumentArg)
{
}
returns (Default)
{
}
= 3;

OnAboutToLoadDocument

Fired when a document is about to be loaded (regardless of whether the load actually succeeds).

event OnAboutToLoadDocument returns (AboutToLoadDocument)
{
}
= 4;

OnDocumentLoaded

Fired when a document is fully loaded (after DOM event 'load' has finished).

event OnDocumentLoaded returns (DocumentLoaded)
{
}
= 5;