Java Reference
In-Depth Information
Methods
MethOD NaMe
DesCrIptION
INtrODuCeD
Returns the element at the specified index. Returns
null
if
index
is larger than the collection's length.
Level 1
item(index)
Returns the element using a name. It first searches for
an element with a matching
id
attribute value. If none
are found, it searches for elements with a matching
name
attribute value.
Level 1
namedItem(name)
htML Document Objects: the htML Document
The
HTMLDocument
object is the root of HTML documents and contains the entire content.
Properties
prOperty NaMe
DesCrIptION
INtrODuCeD
Returns an
HTMLCollection
of all
<a/>
elements
in the document that have a value assigned to their
name
attribute.
Level 1
anchors
Returns an
HTMLCollection
of all
<applet/>
elements and
<object/>
elements that include
applets in the document.
Level 1
applets
Returns the element that contains the document's
content. Returns the
<body/>
element, or the
outermost
<frameset/>
element depending on the
document.
Level 1
body
Returns the cookies associated with the document.
Returns an empty string if none.
Level 1
cookie
Returns the domain name of the server that served
the document. Returns
null
if the domain name
cannot be identified.
Level 1
domain
Returns an
HTMLCollectio
n of all
<form/>
elements
in the document.
Level 1
forms
Returns an
HTMLCollection
object containing all
<img/>
elements in the document.
Level 1
images
Returns an
HTMLCollection
of all
<area/>
and
<a/>
elements (with an
href
value) in the document.
Level 1
links