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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Individual entries in the history array can be accessed as history[i] using signed scripts in<br />

Netscape but are otherwise unavailable for privacy reasons.<br />

h1,…h6 (Document Object)<br />

This object corresponds to an (heading level n where heading level ranges from 1 to 6)<br />

element in the document. Access to this object is achieved through standard DOM methods<br />

such as document.getElementById().<br />

Properties<br />

This object has the following property, 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, "left". (IE4+,<br />

MOZ/N6+, DOM1)<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 />

hr, HTMLHRElement (Document Object)<br />

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

is achieved through standard DOM methods such as document.getElementById().<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, "left". (IE4+,<br />

MOZ/N6+, DOM1)<br />

color String specifying the color of the rule. (IE4+)<br />

noShade Boolean indicating that the rule is not to be shaded. (IE4+, MOZ/N6+, DOM1)<br />

size String specifying the size (height) of the rule in pixels. (IE4+, MOZ/N6+, DOM1)<br />

width String specifying the width of the rule in pixels. (IE4+, MOZ/N6+, DOM1)<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 />

html, HTMLHtmlElement (Document Object)<br />

This object corresponds to the element in the document. Access to this object is<br />

achieved through standard DOM methods, typically directly using<br />

document.documentElement.<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 />

scroll String indicating whether scroll bars should be present in the document. Valid<br />

values are "yes", "no", and "auto". (IE6+)<br />

version String containing the DTD version for the document. (IE6+, MOZ/N6+, DOM1)<br />

Methods

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

Saved successfully!

Ooh no, something went wrong!