Javascript Reference
Categories: clipboardData

javascript clipboardData setData( )

@March 15, 2008, 1:22 a.m.
setData( )Firefox/Netscape/NN n/a IE 5(Win) Chrome/Safari/DOM n/a  

setData(dataFormat, stringData)

  

Stores string data in the clipboardData object. Returns Boolean true if the assignment is successful

 
Parameters
 
dataFormat

A string specifying the format for the data to be read. Earlier plans to allow multiple data types appear to have fallen through. As of IE 6, the only reliable format is Text. While the method accepts URL as a format, reading a set value in that format is not successful.

stringData

Any string value, including strings that contain HTML tags.

 
Returned Value

Boolean value: true | false.


Powered by Linode.