|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
HTMLDocument
public HTMLDocument
| Field Summary | |
|---|---|
String |
URL
The absolute URI [RFC2396] of the document. |
HTMLCollection |
anchors
A collection of all the anchor (A) elements in a document with a value for the name attribute. |
HTMLCollection |
applets
A collection of all the OBJECT elements that include applets and APPLET (deprecated) elements in a document. |
HTMLElement |
body
The element that contains the content for the document. |
String |
cookie
This mutable string attribute denotes persistent state information that (1) is associated with the current frame or document and (2) is composed of information described by the cookies non-terminal of [RFC2965], Section 4.2.2. |
String |
domain
The domain name of the server that served the document, or null if the server cannot be identified by a domain name. |
HTMLCollection |
forms
A collection of all the forms of a document. |
HTMLCollection |
images
A collection of all the IMG elements in a document. |
HTMLCollection |
links
A collection of all AREA elements and anchor (A) elements in a document with a value for the href attribute. |
String |
referrer
Returns the URI [RFC2396] of the page that linked to this page. |
String |
title
The title of a document as specified by the TITLE element in the head of the document. |
| Fields inherited from class Document |
|---|
documentElement |
| Fields inherited from class Node |
|---|
childNodes, firstChild, lastChild, nextSibling, nodeName, nodeType, nodeValue, ownerDocument, parentNode, previousSibling |
| Method Summary | |
|---|---|
void |
close()
Closes a document stream opened by open() and forces rendering. |
NodeList |
getElementsByName(String elementName)
Returns the (possibly empty) collection of elements whose name value is given by elementName. |
void |
open()
Open a document stream for writing. |
void |
write(String text)
Write a string of text to a document stream opened by open(). |
void |
writeln(String text)
Write a string of text followed by a newline character to a document stream opened by open(). |
| Methods inherited from class Document |
|---|
createComment, createElement, createTextNode, getElementById, getElementsByTagName |
| Methods inherited from class Node |
|---|
appendChild, hasChildNodes, insertBefore, removeChild, replaceChild |
| Field Detail |
|---|
String cookie
final HTMLCollection anchors
HTMLElement body
final String referrer
String title
final HTMLCollection applets
final String domain
final HTMLCollection images
final HTMLCollection links
final String URL
final HTMLCollection forms
| Method Detail |
|---|
void writeln(String text)
text - The string to be parsed into some structure in the document structure model.void open()
NodeList getElementsByName(String elementName)
elementName - The name attribute value for an element.
void write(String text)
text - The string to be parsed into some structure in the document structure model.void close()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||