| Object definitions |
|
| Reference About All Interface Elements |
|
| Interface HTMLHtmlElement |
|
| Root of an HTML document. |
|
| IDL Definition |
|
interface HTMLHtmlElement
: HTMLElement {
attribute DOMString version;
}; |
|
Attributes
version-
Version information about the document's DTD. |
|
| Interface HTMLHeadElement |
|
| Document head information. |
|
| IDL Definition |
|
interface HTMLHeadElement : HTMLElement {
attribute DOMString profile;
}; |
|
Attributes
profile-
URI designating a metadata profile. |
|
| Interface HTMLLinkElement |
|
| The LINK element specifies a link to an external resource, and defines this document's relationship to that resource (or vice versa). |
|
| IDL Definition |
|
interface HTMLLinkElement : HTMLElement {
attribute boolean disabled;
attribute DOMString charset;
attribute DOMString href;
attribute DOMString hreflang;
attribute DOMString media;
attribute DOMString rel;
attribute DOMString rev;
attribute DOMString target;
attribute DOMString type;
};
|
|
Attributes
disabled-
Enables/disables the link. This is currently only used for style sheet links, and may be used to activate or deactivate style sheets.
charset-
The character encoding of the resource being linked to. href
media-
Designed for use with one or more target media.
rel-
Forward link type.
rev-
Reverse link type.
target-
Frame to render the resource in.
type-
Advisory content type. |
|
| Interface HTMLTitleElement |
|
| The document title. |
|
| IDL Definition |
|
interface HTMLTitleElement : HTMLElement {
attribute DOMString text;
}; |
|
Attributes
text-
The specified title as a string. |
|
| Interface HTMLMetaElement |
|
| This contains generic meta-information about the document. |
|
| IDL Definition |
|
interface HTMLMetaElement : HTMLElement {
attribute DOMString content;
attribute DOMString httpEquiv;
attribute DOMString name;
attribute DOMString scheme;
};
|
|
| Attributes |
|
content-
Associated information.
httpEquiv-
HTTP response header name
name-
Meta information name.
scheme-
Select form of content.
|
|
| Interface HTMLBaseElement |
|
| Document base URI. |
|
| IDL Definition |
|
interface HTMLBaseElement : HTMLElement {
attribute DOMString href;
attribute DOMString target;
}; |
|
Attributes
href -
The base URI
target-
The default target frame. |
|
| Interface HTMLIsIndexElement |
|
| This element is used for single-line text input. |
|
| IDL Definition |
|
interface HTMLIsIndexElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute DOMString prompt;
}; |
|
Attributes
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
prompt-
The prompt message. |
|
| Interface HTMLStyleElement |
|
| Style information. A more detailed style sheet object model is planned to be defined in a separate document. |
|
| IDL Definition |
|
interface HTMLStyleElement : HTMLElement {
attribute boolean disabled;
attribute DOMString media;
attribute DOMString type;
};
|
|
Attributes
disabled-
Enables/disables the style sheet.
media-
Designed for use with one or more target media.
type-
The style sheet language (Internet media type). |
|
| Interface HTMLBodyElement |
|
| The HTML document body. This element is always present in the DOM API, even if the tags are not present in the source document. |
|
| IDL Definition |
|
interface HTMLBodyElement : HTMLElement {
attribute DOMString aLink;
attribute DOMString background;
attribute DOMString bgColor;
attribute DOMString link;
attribute DOMString text;
attribute DOMString vLink;
};
|
|
Attributes
aLink-
Color of active links (after mouse-button down, but before mouse-button up).
background-
URI of the background texture tile image.
bgColor-
Document background color.
link-
Color of links that are not active and unvisited.
text-
Document text color.
vLink-
Color of links that have been visited by the user. |
|
| Interface HTMLFormElement |
|
| The FORM element encompasses behavior similar to a collection and an element. It provides direct access to the contained input elements as well as the attributes of the form element. |
|
| IDL Definition |
|
interface HTMLFormElement : HTMLElement {
readonly attribute HTMLCollection elements;
readonly attribute long length;
attribute DOMString name;
attribute DOMString acceptCharset;
attribute DOMString action;
attribute DOMString enctype;
attribute DOMString method;
attribute DOMString target;
void submit();
void reset();
};
|
|
| Attributes |
|
elements-
Returns a collection of all control elements in the form.
length-
The number of form controls in the form.
name-
Names the form.
acceptCharset-
List of character sets supported by the server.
action-
Server-side form handler.
enctype-
The content type of the submitted form, generally "application/x-www-form-urlencoded".
method-
HTTP method used to submit form.
target-
Frame to render the resource in. |
|
| Methods |
|
submit-
Submits the form. It performs the same action as a submit button. This method has no parameters. This method returns nothing. This method raises no exceptions. |
|
reset-
Restores a form element's default values. It performs the same action as a reset button. This method has no parameters. This method returns nothing. This method raises no exceptions. |
|
| Interface HTMLSelectElement |
|
| The select element allows the selection of an option. The contained options can be directly accessed through the select element as a collection. |
|
| IDL Definition |
|
interface HTMLSelectElement : HTMLElement {
readonly attribute DOMString type;
attribute long selectedIndex;
attribute DOMString value;
readonly attribute long length;
readonly attribute HTMLFormElement form;
readonly attribute HTMLCollection options;
attribute boolean disabled;
attribute boolean multiple;
attribute DOMString name;
attribute long size;
attribute long tabIndex;
void add(in HTMLElement element,
in HTMLElement before);
void remove(in long index);
void blur();
void focus();
};
|
|
Attributes
type-
The type of control created.
selectedIndex-
The ordinal index of the selected option. The value 1 is returned if no element is selected. If multiple options are selected, the index of the first selected option is returned.
value-
The current form control value.
length-
The number of options in this SELECT.
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
options-
The collection of OPTION elements contained by this element.
disabled-
The control is unavailable in this context.
multiple-
If true, multiple OPTION elements may be selected in this SELECT.
name-
Form control or object name when submitted with a form.
size-
Number of visible rows.
tabIndex-
Index that represents the element's position in the tabbing order. |
|
Methods
add-
Add a new element to the collection of OPTION elements for this SELECT. |
|
Parameters-
element The element to add.
before-
The element to insert before, or NULL for the head of the list.
This method returns nothing.
This method raises no exceptions.
remove-
Remove an element from the collection of OPTION elements for this SELECT. Does nothing if no element has the given index. |
|
Parameters
index-
The index of the item to remove.
This method returns nothing.
This method raises no exceptions.
blur-
Removes keyboard focus from this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
focus-
Gives keyboard focus to this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions. |
|
| Interface HTMLOptGroupElement |
|
| Group options together in logical subdivisions. |
|
| IDL Definition |
|
interface HTMLOptGroupElement : HTMLElement {
attribute boolean disabled;
attribute DOMString label;
}; |
|
Attributes
disabled-
The control is unavailable in this context.
label-
Assigns a label to this option group. |
|
| Interface HTMLOptionElement |
|
| A selectable choice. |
|
| IDL Definition |
|
interface HTMLOptionElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute boolean defaultSelected;
readonly attribute DOMString text;
attribute long index;
attribute boolean disabled;
attribute DOMString label;
readonly attribute boolean selected;
attribute DOMString value;
};
|
|
Attributes
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
defaultSelected-
Stores the initial value of the selected attribute.
text-
The text contained within the option element.
index-
The index of this OPTION in its parent SELECT.
disabled-
The control is unavailable in this context.
label-
Option label for use in hierarchical menus.
selected-
Means that this option is initially selected.
value-
The current form control value. |
|
| Interface HTMLInputElement |
|
| Form control. Note. Depending upon the environment the page is being viewed, the value property may be read-only for the file upload input type. For the "password" input type, the actual value returned may be masked to prevent unauthorized use. |
|
| IDL Definition |
|
interface HTMLInputElement : HTMLElement {
attribute DOMString defaultValue;
attribute boolean defaultChecked;
readonly attribute HTMLFormElement form;
attribute DOMString accept;
attribute DOMString accessKey;
attribute DOMString align;
attribute DOMString alt;
attribute boolean checked;
attribute boolean disabled;
attribute long maxLength;
attribute DOMString name;
attribute boolean readOnly;
attribute DOMString size;
attribute DOMString src;
attribute long tabIndex;
readonly attribute DOMString type;
attribute DOMString useMap;
attribute DOMString value;
void blur();
void focus();
void select();
void click();
};
|
|
Attributes
defaultValue-
Stores the initial control
value (i.e., the initial value of value).
defaultChecked-
When type has the value "Radio" or "Checkbox",
stores the initial value of the checked attribute.
form-
Returns the FORM element containing this control.
Returns null if this control is not within the context of a form.
accept-
A comma-separated list of content types
that a server processing this form will handle correctly.
accessKey-
A single character access key to
give access to the form control.
align-
Aligns this object (vertically or horizontally)
with respect to its surrounding text.
alt-
Alternate text for user agents not
rendering the normal content of this element.
checked-
Describes whether a radio or check box is checked,
when type has the value "Radio" or "Checkbox".
The value is TRUE if explicitly set.
Represents the current state of the checkbox or radio button.
disabled-
The control is unavailable in this context.
maxLength-
Maximum number of characters for text fields,
when type has the value "Text" or "Password".
name-
Form control or object name when submitted with a form.
readOnly-
This control is read-only.
When type has the value "text" or "password" only.
size-
Size information. The precise meaning is specific to each type of field.
src-
When the type attribute has the value "Image",
this attribute specifies the location of the image
to be used to decorate the graphical submit button.
tabIndex-
Index that represents the element's position in the tabbing order.
type-
The type of control created.
useMap-
Use client-side image map.
value-
The current form control value. Used for radio buttons and check boxes.
|
|
| Methods |
|
blur
Removes keyboard focus from this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
focus
Gives keyboard focus to this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
select-
Select the contents of the text area.
For INPUT elements whose type attribute has one of the following values: "Text", "File", or "Password".
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
click-
Simulate a mouse-click. For INPUT elements whose type attribute has one of the following values: "Button", "Checkbox", "Radio", "Reset", or "Submit".
This method has no parameters.
This method returns nothing.
This method raises no exceptions. |
|
| Interface HTMLTextAreaElement |
|
| Multi-line text field. |
|
| IDL Definition |
|
interface HTMLTextAreaElement : HTMLElement {
attribute DOMString defaultValue;
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute long cols;
attribute boolean disabled;
attribute DOMString name;
attribute boolean readOnly;
attribute long rows;
attribute long tabIndex;
readonly attribute DOMString type;
attribute DOMString value;
void blur();
void focus();
void select();
};
|
|
Attributes
defaultValue-
Stores the initial control value (i.e., the initial value of value).
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
accessKey-
A single character access key to give access to the form control. cols Width of control (in characters).
disabled-
The control is unavailable in this context. name Form control or object name when submitted with a form.
readOnly-
This control is read-only.
rows-
Number of text rows.
tabIndex-
Index that represents the element's position in the tabbing order.
type-
The type of this form control. value The current textual content of the multi-line text field. If the entirety of the data can not fit into a single wstring, the implementation may truncate the data. |
|
Methods
blur-
Removes keyboard focus from this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
focus-
Gives keyboard focus to this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
select-
Select the contents of the TEXTAREA.
This method has no parameters.
This method returns nothing.
This method raises no exceptions. |
|
| Interface HTMLButtonElement |
|
| Push button. |
|
| IDL Definition |
|
interface HTMLButtonElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute boolean disabled;
attribute DOMString name;
attribute long tabIndex;
readonly attribute DOMString type;
attribute DOMString value;
};
|
|
Attributes
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
access-
Key A single character access key to give access to the form control.
disabled-
The control is unavailable in this context.
name-
Form control or object name when submitted with a form.
tabIndex-
Index that represents the element's position in the tabbing order.
type-
The type of button.
value-
The current form control value. |
|
| Attributes |
|
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form
access Key-
A single character access key to give access to the form control.
html For-
This attribute links this label with another form control by id attribute. |
|
| Interface HTMLFieldSetElement |
|
| Organizes form controls into logical groups. |
|
| IDL Definition |
|
interface HTMLFieldSetElement : HTMLElement {
readonly attribute HTMLFormElement form;
}; |
|
| Attributes |
|
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form. |
|
| Interface HTMLLegendElement |
|
| Provides a caption for a FIELDSET grouping. |
|
| IDL Definition |
|
interface HTMLLegendElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute DOMString accessKey;
attribute DOMString align;
}; |
|
Attributes
form
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
access-
Key A single character access key to give access to the form control. align Text alignment relative to FIELDSET. |
|
| Interface HTMLUListElement |
|
| Unordered list. |
|
| IDL Definition |
|
interface HTMLUListElement : HTMLElement {
attribute boolean compact;
attribute DOMString type;
}; |
|
Attributes
compact-
Reduce spacing between list items.
type-
Bullet style. |
|
| Interface HTMLOListElement |
|
| Ordered list. |
|
| IDL Definition |
|
interface HTMLOListElement : HTMLElement {
attribute boolean compact;
attribute long start;
attribute DOMString type;
};
|
|
Attributes
compact Reduce spacing between list items.
start-
Starting sequence number.
type-
Numbering style. |
|
| Interface HTMLDListElement |
|
| Definition list. |
|
| IDL Definition |
|
interface HTMLDListElement : HTMLElement {
attribute boolean compact;
}; |
|
Attributes
compact-
Reduce spacing between list items. |
|
| Interface HTMLDirectoryElement |
|
| Directory list. |
|
| IDL Definition |
|
interface HTMLDirectoryElement : HTMLElement {
attribute boolean compact;
}; |
|
Attributes
compact-
Reduce spacing between list items. |
|
| Interface HTMLMenuElement |
|
| Menu list. |
|
| IDL Definition |
|
interface HTMLMenuElement : HTMLElement {
attribute boolean compact;
}; |
|
Attributes
compact-
Reduce spacing between list items. |
|
| Interface HTMLLIElement |
|
| List item. |
|
| IDL Definition |
|
interface HTMLLIElement : HTMLElement {
attribute DOMString type;
attribute long value;
}; |
|
Attributes
type-
List item bullet style.
value-
Reset sequence number when used in OL |
|
| Interface HTMLBlockquoteElement |
|
| IDL Definition |
|
interface HTMLBlockquoteElement : HTMLElement {
attribute DOMString cite;
}; |
|
| Attributes |
|
cite-
A URI designating a document that describes the reason for the change. |
|
| Interface HTMLDivElement |
|
| Generic block container. |
|
| IDL Definition |
|
interface HTMLDivElement : HTMLElement {
attribute DOMString align;
}; |
|
Attributes
align
Horizontal text alignment. |
|
| Interface HTMLParagraphElement |
|
| Paragraphs. |
|
| IDL Definition |
|
interface HTMLParagraphElement : HTMLElement {
attribute DOMString align;
}; |
|
Attributes
align-
Horizontal text alignment. |
|
| Interface HTMLHeadingElement |
|
| For the H1 to H6 elements. |
|
| IDL Definition |
|
interface HTMLHeadingElement : HTMLElement {
attribute DOMString align;
}; |
|
Attributes
align
Horizontal text alignment. |
|
| Interface HTMLQuoteElement |
|
| For the Q and BLOCKQUOTE elements. |
|
| IDL Definition |
|
interface HTMLQuoteElement : HTMLElement {
attribute DOMString cite;
}; |
|
Attributes
cite-
A URI designating a document that designates a source document or message. |
|
| Interface HTMLPreElement |
|
| Preformatted text. |
|
| IDL Definition |
|
interface HTMLPreElement : HTMLElement {
attribute long width;
}; |
|
Attributes
width-
Fixed width for content. |
|
| Interface HTMLBRElement |
|
Force a line break.
IDL Definition interface HTMLBRElement : HTMLElement { attribute DOMString clear; };
Attributes
clear-
Control flow of text around floats. |
|
| Interface HTMLBaseFontElement |
|
Base font.
IDL Definition
interface HTMLBaseFontElement : HTMLElement { attribute DOMString color; attribute DOMString face; attribute DOMString size; };
Attributes
color -
Font color.
face-
Font face identifier.
size-
Font size. |
|
Interface HTMLFontElement
Local change to font.
IDL Definition
interface HTMLFontElement : HTMLElement { attribute DOMString color; attribute DOMString face; attribute DOMString size; };
Attributes
color-
Font color.
face-
Font face identifier.
size-
Font size. |
|
Interface HTMLHRElement
Create a horizontal rule.
IDL Definition
interface HTMLHRElement : HTMLElement {
attribute DOMString align;
attribute boolean noShade;
attribute DOMString size;
attribute DOMString width;
};
Attributes
align-
Align the rule on the page.
noShade-
Indicates to the user agent that there should be no shading in the rendering of this element.
size-
The height of the rule.
width-
The width of the rule. |
|
Interface HTMLModElement
Notice of modification to part of a document.
IDL Definition
interface HTMLModElement : HTMLElement { attribute DOMString cite; attribute DOMString dateTime; };
Attributes
cite-
A URI designating a document that describes the reason for the change.
dateTime-
The date and time of the change. |
|
| Interface HTMLAnchorElement |
|
| The anchor element. |
|
| IDL Definition |
|
interface HTMLAnchorElement : HTMLElement {
attribute DOMString accessKey;
attribute DOMString charset;
attribute DOMString coords;
attribute DOMString href;
attribute DOMString hreflang;
attribute DOMString name;
attribute DOMString rel;
attribute DOMString rev;
attribute DOMString shape;
attribute long tabIndex;
attribute DOMString target;
attribute DOMString type;
void blur();
void focus();
};
|
|
Attributes
accessKey-
A single character access key to give access to the form control.
charset -
The character encoding of the linked resource.
coords-
Comma-separated list of lengths, defining an active region geometry. See also shape for the shape of the region.
href-
The URI of the linked resource.
Language code of the linked resource.
name-
Anchor name.
rel-
Forward link type.
rev-
Reverse link type.
shape-
The shape of the active area. The coordinates are given by coords.
tabIndex-
Index that represents the element's position in the tabbing order.
target-
Frame to render the resource in.
type-
Advisory content type. |
|
Methods
blur-
Removes keyboard focus from this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
focus-
Gives keyboard focus to this element.
This method has no parameters.
This method returns nothing.
This method raises no exceptions. |
|
Interface HTMLImageElement
Embedded image. |
|
| IDL Definition |
|
interface HTMLImageElement : HTMLElement {
attribute DOMString lowSrc;
attribute DOMString name;
attribute DOMString align;
attribute DOMString alt;
attribute DOMString border;
attribute DOMString height;
attribute DOMString hspace;
attribute boolean isMap;
attribute DOMString longDesc;
attribute DOMString src;
attribute DOMString useMap;
attribute DOMString vspace;
attribute DOMString width;
};
|
|
Attributes
lowSrc-
URI designating the source of this image, for low-resolution output.
name-
The name of the element (for backwards compatibility).
align-
Aligns this object (vertically or horizontally) with respect to its surrounding text.
alt-
Alternate text for user agents not rendering the normal content of this element border Width of border around image.
height-
Override height.
hspace-
Horizontal space to the left and right of this image.
isMap-
Use server-side image map.
longDesc-
URI designating a long description of this image or frame.
src-
URI designating the source of this image.
useMap-
Use client-side image map.
vspace-
Vertical space above and below this image. . width Override width. |
|
Interface HTMLObjectElement
Generic embedded object. Note. In principle, all properties on the object element are read-write but in some environments some properties may be read-only once the underlying object is instantiated. |
|
| IDL Definition |
|
interface HTMLObjectElement : HTMLElement {
readonly attribute HTMLFormElement form;
attribute DOMString code;
attribute DOMString align;
attribute DOMString archive;
attribute DOMString border;
attribute DOMString codeBase;
attribute DOMString codeType;
attribute DOMString data;
attribute boolean declare;
attribute DOMString height;
attribute DOMString hspace;
attribute DOMString name;
attribute DOMString standby;
attribute long tabIndex;
attribute DOMString type;
attribute DOMString useMap;
attribute DOMString vspace;
attribute DOMString width;
};
|
|
Attributes
form-
Returns the FORM element containing this control. Returns null if this control is not within the context of a form.
code-
Applet class file. See the code attribute for HTMLAppletElement.
align-
Aligns this object (vertically or horizontally) with respect to its surrounding text.
archive-
Space-separated list of archives.
border-
Width of border around the object.
codeBase-
Base URI for classid, data, and archive attributes.
codeType-
Content type for data downloaded via classid attribute.
data -
A URI specifying the location of the object's data.
declare-
Declare (for future reference), but do not instantiate, this object.
height-
Override height.
hspace-
Horizontal space to the left and right of this image, applet, or object.
name-
Form control or object name when submitted with a form.
standby-
Message to render while loading the object.
tabIndex-
Index that represents the element's position in the tabbing order.
type-
Content type for data downloaded via data attribute.
useMap-
Use client-side image map.
vspace-
Vertical space above and below this image, applet, or object.
width-
Override width. |
|
Interface HTMLParamElement
Parameters fed to the OBJECT element.
IDL Definition
interface HTMLParamElement : HTMLElement {
attribute DOMString name;
attribute DOMString type;
attribute DOMString value;
attribute DOMString valueType;
};
Attributes
name-
The name of a run-time parameter.
type-
Content type for the value attribute when valuetype has the value "ref".
value-
The value of a run-time parameter.
valueType-
Information about the meaning of the value attribute value. |
|
Interface HTMLAppletElement
An embedded Java applet. |
|
| IDL Definition |
|
interface HTMLAppletElement : HTMLElement {
attribute DOMString align;
attribute DOMString alt;
attribute DOMString archive;
attribute DOMString code;
attribute DOMString codeBase;
attribute DOMString height;
attribute DOMString hspace;
attribute DOMString name;
attribute DOMString object;
attribute DOMString vspace;
attribute DOMString width;
};
|
|
Attributes
align-
Aligns this object (vertically or horizontally) with respect to its surrounding text.
alt-
Alternate text for user agents not rendering the normal content of this element.
archive-
Comma-separated archive list.
code- Applet class file.
codeBase-
Optional base URI for applet. height Override height.
hspace-
Horizontal space to the left and right of this image, applet, or object.
name-
The name of the applet.
object-
Serialized applet file.
vspace-
Vertical space above and below this image, applet, or object. width Override width. |
|
Interface HTMLMapElement
Client-side image map.
IDL Definition
interface HTMLMapElement : HTMLElement { readonly attribute HTMLCollection areas; attribute DOMString name; };
Attributes
areas-
The list of areas defined for the image map.
name-
Names the map (for use with usemap |
|
| Interface HTMLAreaElement |
|
Client-side image map area definition.
IDL Definition
interface HTMLAreaElement : HTMLElement {
attribute DOMString accessKey;
attribute DOMString alt;
attribute DOMString coords;
attribute DOMString href;
attribute boolean noHref;
attribute DOMString shape;
attribute long tabIndex;
attribute DOMString target;
};
Attributes
accessKey-
A single character access key to give access to the form control.
alt-
Alternate text for user agents not rendering the normal content of this element.
coords-
Comma-separated list of lengths, defining an active region geometry. See also shape for the shape of the region.
href-
The URI of the linked resource.
noHref -
Specifies that this area is inactive, i.e., has no associated action.
shape-
The shape of the active area. The coordinates are given by coords.
tabIndex-
Index that represents the element's position in the tabbing order.
target-
Frame to render the resource in. |
|
| Interface HTMLScriptElement |
|
| Script statements. |
|
| IDL Definition |
|
interface HTMLScriptElement : HTMLElement {
attribute DOMString text;
attribute DOMString htmlFor;
attribute DOMString event;
attribute DOMString charset;
attribute boolean defer;
attribute DOMString src;
attribute DOMString type;
};
|
|
Attributes
text-
The script content of the element.
htmlFor-
Reserved for future use.
event -
Reserved for future use.
charset-
The character encoding of the linked resource.
defer -
Indicates that the user agent can defer processing of the script.
src-
URI designating an external script.
type-
The content type of the script language. |
|
|
| Interface HTMLTableElement |
|
| The create* and delete* methods on the table allow authors to construct and modify tables. HTML 4.0 specifies that only one of each of the CAPTION, THEAD, and TFOOT elements may exist in a table. Therefore, if one exists, and the createTHead() or createTFoot() method is called, the method returns the existing THead or TFoot element. |
|
| IDL Definition |
|
interface HTMLTableElement : HTMLElement {
attribute HTMLTableCaptionElement caption;
attribute HTMLTableSectionElement tHead;
attribute HTMLTableSectionElement tFoot;
readonly attribute HTMLCollection rows;
readonly attribute HTMLCollection tBodies;
attribute DOMString align;
attribute DOMString bgColor;
attribute DOMString border;
attribute DOMString cellPadding;
attribute DOMString cellSpacing;
attribute DOMString frame;
attribute DOMString rules;
attribute DOMString summary;
attribute DOMString width;
HTMLElement createTHead();
void deleteTHead();
HTMLElement createTFoot();
void deleteTFoot();
HTMLElement createCaption();
void deleteCaption();
HTMLElement insertRow(in long index);
void deleteRow(in long index);
};
|
|
Attributes
caption -
Returns the table's CAPTION, or void if none exists.
tHead -
Returns the table's THEAD, or null if none exists.
tFoot-
Returns the table's TFOOT, or null if none exists.
rows-
Returns a collection of all the rows in the table, including all in THEAD, TFOOT, all TBODY elements.
tBodies-
Returns a collection of the defined table bodies.
align-
Specifies the table's position with respect to the rest of the document.
bgColor-
Cell background color.
border-
The width of the border around the table.
cellPadding -
Specifies the horizontal and vertical space between cell content and cell borders.
cellSpacing-
Specifies the horizontal and vertical separation between cells.
frame-
Specifies which external table borders to render.
rules-
Specifies which internal table borders to render.
summary-
Supplementary description about the purpose or structure of a table.
width-
Specifies the desired table width. |
|
| Methods |
|
createTHead
Create a table header row or return an existing one. |
|
| Return Value |
|
A new table header element (THEAD).
This method has no parameters.
This method raises no exceptions.
deleteTHead Delete the header from the table, if one exists.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
createTFoot Create a table footer row or return an existing one. |
|
| Return Value |
|
| A footer element (TFOOT). |
|
A footer element (TFOOT).
This method has no parameters.
This method raises no exceptions.
deleteTFoot Delete the footer from the table, if one exists.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
createCaption Create a new table caption object or return an existing one. |
|
| Return Value |
|
A CAPTION element.
This method has no parameters.
This method raises no exceptions.
deleteCaption Delete the table caption, if one exists.
This method has no parameters.
This method returns nothing.
This method raises no exceptions.
insertRow Insert a new empty row in the table.
Note. A table row cannot be empty according to HTML 4.0 Recommendation.
|
|
| Parameters |
|
index -
The row number where to insert a new row. |
|
| Return Value |
|
The newly created row.
This method raises no exceptions.
deleteRow Delete a table row. |
|
| Parameters |
|
index The index of the row to be deleted.
This method returns nothing.
This method raises no exceptions. |
|
| Interface HTMLTableCaptionElement |
|
Table caption
IDL Definition
interface HTMLTableCaptionElement : HTMLElement {
attribute DOMString align;
};
Attributes
align-
Caption alignment with respect to the table.
|
|
Interface HTMLTableColElement
Regroups the COL and COLGROUP elements. |
|
| IDL Definition |
|
interface HTMLTableColElement : HTMLElement {
attribute DOMString align;
attribute DOMString ch;
attribute DOMString chOff;
attribute long span;
attribute DOMString vAlign;
attribute DOMString width;
};
|
|
Attributes
align -
Horizontal alignment of cell data in column.
ch-
Alignment character for cells in a column.
chOff -
Offset of alignment character.
span-
Indicates the number of columns in a group or affected by a grouping.
vAlign-
Vertical alignment of cell data in column.
width-
Default column width. |
|
| Interface HTMLTableSectionElement |
|
| The THEAD, TFOOT, and TBODY elements. |
|
| IDL Definition |
|
interface HTMLTableSectionElement : HTMLElement {
attribute DOMString align;
attribute DOMString ch;
attribute DOMString chOff;
attribute DOMString vAlign;
readonly attribute HTMLCollection rows;
HTMLElement insertRow(in long index);
void deleteRow(in long index);
};
|
|
Attributes
align-
Horizontal alignment of data in cells.
ch-
Alignment character for cells in a column.
chOff0-
Offset of alignment character.
vAlign-
Vertical alignment of data in cells.
rows-
The collection of rows in this table section. |
|
Methods
insert
Row Insert a row into this section. |
|
Parameters
index-
The row number where to insert a new row. Return Value The newly created row. This method raises no exceptions.
delete-
Row Delete a row from this section.
Parameters-
index The index of the row to be deleted.
This method returns nothing.
This method raises no exceptions.
|
|
| Interface HTMLTableRowElement |
|
| A row in a table. |
|
| IDL Definition |
|
interface HTMLTableRowElement : HTMLElement {
attribute long rowIndex;
attribute long sectionRowIndex;
attribute HTMLCollection cells;
attribute DOMString align;
attribute DOMString bgColor;
attribute DOMString ch;
attribute DOMString chOff;
attribute DOMString vAlign;
HTMLElement insertCell(in long index);
void deleteCell(in long index);
};
|
|
| Attributes |
|
rowIndex
The index of this row, relative to the entire table.
section-
RowIndex The index of this row, relative to the current section (THEAD, TFOOT, or TBODY).
cells-
The collection of cells in this row.
align-
Horizontal alignment of data within cells of this row.
bgColor-
Background color for rows.
ch-
Alignment character for cells in a column.
chOff-
Offset of alignment character.
vAlign-
Vertical alignment of data within cells of this row. |
|
|
|
|
|
|
0 comments: