0

Hey folks,

I am running into a really good function in JavaScript but I wonder how it is used. I've done a bit of search on how it is used and have seen examples but none of the examples seem to work for me anyway.

it throws an error at me saying "TypeError: window.clipboardData is undefined" on the second line.

`  var a = "hello world";
   window.clipboardData.setData("Text",a);    // TypeError: window.clipboardData is undefined
   alert(window.clipboardData.getData('Text'));

`

Cheers,

2
Contributors
2
Replies
3
Views
4 Years
Discussion Span
Last Post by rotten69
This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.