Hi ALL,
I created one web resource in on premise and online CRM that contain copy button to copy the texts and links present on web resource.
copy to clipboard function work properly in all browser for online and on premise environment but if environment on premise open IE browser it not allow to copy the content for online environment copy content work for IE.
IE browser copy to clipboard permission is enable already.
https://edumanual.pbworks.com/w/page/61242170/Clipboard%20Access%20for%20Internet%20Explorer
please suggest for on premise any setting need to enable.
below is code for copy to clipboard
var body = document.body, range, sel;
if (document.createRange && window.getSelection) {
// all browsers, except IE before version 9
range = document.createRange();
sel = window.getSelection();
sel.removeAllRanges();
try {
range.selectNodeContents(el);
sel.addRange(range);
} catch (e) {
range.selectNode(el);
sel.addRange(range);
}
document.execCommand("copy");
} else if (body.createTextRange) {
range = body.createTextRange();
range.moveToElementText(el);
range.select();
range.execCommand("Copy");
}
Thanks!
*This post is locked for comments
I have the same question (0)