This is an older question, but I will call as I stumbled upon this problem myself.
As a result, I used the fact that IE supports the document.execCommand('paste') method. However, you can paste this copied material into hidden input and check it for content that should have been copied.
If the user allowed to manipulate the clipboard, the inserted content and the copied content will be the same. Otherwise, they will not be. Something like that:
var copySuccess, canPaste; inputElementToCopy.select(); copySuccess = document.execCommand('copy'); inputElementToPaste.select(); canPaste = document.execCommand('paste'); if (canPaste) { copySuccess = inputElementToPaste.value === inputElementToCopy.value;
Scrimothy
source share