Java Reference
In-Depth Information
Returns the URL of the page that linked to the page.
Returns an empty string if the user navigated directly
to the page.
Level 1
referrer
The title of the document as specified by the <title/>
element in the document's <head/> element.
Level 1
title
The complete URL of the document.
Level 1
URL
Methods
MethOD NaMe
DesCrIptION
INtrODuCeD
Closes a document.
Level 1
close()
Returns the element with the given
elementId or null if no element could
be found. Removed in DOM Level 2 and
added to the Document object.
Level 1
getElementById(elementId)
Returns an HTMLCollection of elements
with the specified name attribute value.
Level 1
getElementsByName(name)
Opens a document for writing.
Level 1
open()
Writes a string of text to the document.
Level 1
write()
Writes a string of text to the document
followed by a newline.
Level 1
writeln()
htML element Objects
HTML element attributes are exposed as properties of the various HTML element objects. Their
data type is determined by the attribute's type in the HTML 4.0 specification.
Other than HTMLElement , all HTML element objects are described here in alphabetical order. The
following pages do not contain a complete list of HTML element object types. Instead, only the
following element object types are listed:
HTMLAnchorElement
HTMLBodyElement
HTMLButtonElement
HTMLDivElement
HTMLFormElement
HTMLFrameElement
Search WWH ::




Custom Search