5. Document class
Introduction
When an action is associated with a Web application, it creates a document that identifies the full HTML document. This object assigned to the document variable. Thus, scripts can access the web contents and its DOM tree in runtime. The document object implement a subset of the standard DOM HtmlDocument.
Attributes
url |
string |
Full URL of the document. |
domain |
string |
Contains the domain of the page. |
title |
string |
Title of the document. |
cookie |
string |
Contains cookies that are bound to this document. |
anchors |
Collection |
Contains elements of type A. |
forms |
Collection |
Contains items of type FORM. |
images |
Collection |
Contains items from IMG. |
links |
Collection |
Contains elements of type A and AREA. |
documentElement |
Item |
Contains the root element. |
Methods
getElementById |
id: string Element returns |
Find the first element with the specified ID. |
getElementsByTagName |
tag: string returns Collection |
Find all elements with the specified tag. |
write |
text: string |
Add content to the document. |
writeln |
text: string |
Add content and new line to the document. |
autofill | text: string |
Proceed with smart auto fill engine, allowing end user to select and or save accounts. The mandatory parameter sets the domain where to look for accounts. |