Window.clipboardData (Property)

An object containing data that represents the contents of the clipboard.

Availability:

JScript - 5.0
Internet Explorer - 5.0
Property/method value type:clipboardData object
JavaScript syntax:IEclipboardData
IEmyWindow.clipboardData

If you want to move data in and out of the clipboard on a Windows platform from within the MSIE browser, this property will yield a reference to a clipboardData object that encapsulates the clipboard contents.

Example code:

   // Example of how to use the clipboard object supplied by

   // Martin Honnen.

   clipboardData.setData('Text', 'All for Kibology');

   alert(clipboardData.getData('Text'));

   clipboardData.clearData();

   alert(clipboardData.getData('Text'));

See also:clipboardData object