11.12.2012 Views

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

JavaScript 2.0-The Complete Reference, Second ... - freecodingtutorial

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

caption, HTMLTableCaptionElement (Document Object)<br />

This object corresponds to a (table caption) tag in the document. Access to this<br />

object is achieved through standard DOM methods like document.getElementById() or<br />

through the HTMLTableObject () it is enclosed within.<br />

Properties<br />

This object has the following properties, in addition to those in the Generic HTML Element<br />

object found at the beginning of this section:<br />

align String specifying the alignment of the element, for example "top" or "left". (IE4+,<br />

MOZ/N6+, DOM1)<br />

vAlign String specifying the vertical alignment of the element ("bottom" or "top"). (IE4+)<br />

Methods<br />

This object only has the methods listed in the Generic HTML Element object found at the<br />

beginning of this section.<br />

Support<br />

Supported in Internet Explorer 4+, Mozilla/Netscape 6+, DOM1.<br />

center, HTMLElement (Document Object)<br />

This object corresponds to a (centered text) tag in the document. Access to this<br />

object is achieved through standard DOM methods such as document.getElementById().<br />

Properties<br />

This object only has the properties defined by the Generic HTML Element object found at the<br />

beginning of this section.<br />

Methods<br />

This object only has the methods listed in the Generic HTML Element object found at the<br />

beginning of this section.<br />

Support<br />

Supported in Internet Explorer 4+, Mozilla/Netscape 6+, DOM1.<br />

Notes<br />

You may see browsers like Mozilla identify this object as an HTMLSpanElement though no<br />

such object exists in the DOM. <strong>The</strong> correct indication is HTMLElement, though Internet<br />

Explorer just indicates it as a generic object.<br />

Checkbox, HTMLInputElement (Document Object)<br />

This object corresponds to an tag in the document. Access to this<br />

object is achieved through standard DOM methods (for example,<br />

document.getElementById()) or more commonly through the elements[] array of the form it is<br />

contained in.<br />

Properties<br />

This object has the following properties, in addition to those in the Generic HTML Element<br />

object found at the beginning of this section:<br />

accessKey Single character string indicating the hotkey that gives the element focus.<br />

(IE4+, MOZ/N6+, DOM1)<br />

align String specifying the alignment of the element, for example, "left". (MOZ/N6+,<br />

DOM1)<br />

checked Boolean indicating whether the checkbox is checked. (IE3+, MOZ, N2+,<br />

DOM1)<br />

dataFld String specifying which field of a data source is bound to the element. (IE4+)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!