Sunday, 28 October 2012

JavaScript: Copy to Clipboard

Sometimes it is required to provide the functionality of Copying value to Clipboard. This small piece of javascript lets up do exactly the same thing.

window.clipboardData.setData("Text", <TheTextToBeCopied>);

2 comments: