Version: 4.1.3
3.2 Documents
A browser contains one document at a time. If
hyperlinks are clicked, or the navigation methods
(navigate, go-forward, go-back) are used, the
document changes.
Inserts the specified HTML string at the
beginning of the document.
Appends the specified HTML string at the end of
the document.
Replace the current HTML in the document with
the specified HTML string.
Returns a list of COM objects, including ActiveX
controls, that occur in the document. The order
of the objects is the same as in the document.
Inserts a COM object with class coclass at the beginning of
the document. The optional size argument gives an
interpretation for the width and height, where 'percent
indicates that the width and height are a fixed percentage of the
document window size.
Like insert-object-from-coclass, but with a
ProgID instead of a COM class.
Like insert-object-from-coclass, but adds to the
end of the document.
Like insert-object-from-progid, but adds to the
end of the document.
Returns a string indicating the document’s title, that is,
the text that appears within HTML TITLE tags. If the document
has no title, the empty string is returned.
Returns an object that encapsulates an HTML element, where
tag names an HTML tag, and id names the "id"
attribute of the HTML element. The index is a nonnegative
integer indicating the zero-based index of the element among all
elements with the same tag and id. The ordering
of elements is defined by Internet Explorer. The requested element
must be within the document’s "body" tags or the
"body" element itself.
Returns an object that encapsulates an HTML element, where
id names either the "id" or "name"
attribute of the HTML element. The index is a nonnegative
integer indicating the zero-based index of the element among all
elements with the same "id" or "name". The ordering
of elements is defined by Internet Explorer. The requested element
must be within the document’s "body" tags or the
"body" element itself.
Returns a list of elements with the HTML tag given by tag.
The requested elements must be within the document’s "body"
tags or the "body" element itself.