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.

clipboardData (Proprietary Browser Object)<br />

<strong>The</strong> clipboardData object provides an interface for interacting with Windows‘ system clipboard.<br />

Properties<br />

None.<br />

Methods<br />

clearData([dataFormat]) Removes all data from the clipboard unless the string<br />

dataFormat is specified as "Text", "URL", "File", "HTML", or "Image", in which case only<br />

data of that kind is cleared. (IE5+ Windows)<br />

getData(dataFormat) Gets data of the specified format from the clipboard and returns<br />

it as a string (of text, HTML, or a URL). (IE5+ Windows)<br />

setData(dataFormat, data) Attempts to place the data given in string data (either text,<br />

HTML, or a URL) into the clipboard according to the data type specified in the string<br />

dataType (either Text, URL, File, HTML, or Image). Returns a Boolean indicating<br />

whether it was successful. (IE5+ Windows)<br />

Support<br />

Internet Explorer 5+ for Windows.<br />

code, HTMLElement (Document Object)<br />

This object corresponds to a (code listing) tag in the document. <strong>The</strong> object is accessed<br />

via standard DOM methods like 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 />

col, HTMLTableColElement (Document Object)<br />

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

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

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 horizontal alignment of the element, for example, "left".<br />

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

ch String specifying the alignment character for the column. This property/attribute is<br />

generally not supported by browsers, but is provided in case programmers wish to<br />

implement the functionality themselves. (IE6+, MOZ/N6+, DOM1)<br />

chOff String specifying the offset of the first occurrence of the alignment character for<br />

the column. This property/attribute is generally not supported by browsers but is

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

Saved successfully!

Ooh no, something went wrong!