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.

provided in case programmers wish to implement the functionality themselves. (IE6+,<br />

MOZ/N6+, DOM1)<br />

span Integer indicating the number of columns in the group or spanned by the column.<br />

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

vAlign String specifying the vertical alignment of the column data (for example, "top").<br />

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

width Specifies the width of the column 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 />

colGroup, HTMLTableColElement (Document Object)<br />

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

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

object has structure identical to col.<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 />

CSSrule (Document Object)<br />

See rule object.<br />

currentStyle (Proprietary Document Object)<br />

This is a read-only Style object that reflects all styles that are applied to the element,<br />

regardless of where their definitions are. Because the normal Style object reflects only inline<br />

style set with the style attribute, the ―normal‖ Style object as accessed through element.style<br />

does not reflect styles set by default or through externally linked style sheets. <strong>The</strong> currentStyle<br />

object does, and is updated dynamically as the styles applied to the element change. See Style<br />

object for more details.<br />

Support<br />

Internet Explorer 5+.<br />

dataTransfer (Proprietary Browser Object)<br />

This Internet Explorer–specific object is a child of an Event object and provides access to<br />

predefined clipboard formats that are used in drag-and-drop operations. A summary of the<br />

properties and methods is presented here. See MSDN for more details.<br />

Properties<br />

dropEffect Holds the type of drag-and-drop operation and the type of cursor to display.<br />

Allowed values are "copy", "link", "move", and "none", with the default value being<br />

none. (IE5+)<br />

effectAllowed Holds the definition of the data transfer operations, which are allowed<br />

for the source element in the drag-and-drop. Allowed values include "copy," "link,"

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

Saved successfully!

Ooh no, something went wrong!