Here, I am not able to copy the data from clipboard in Mozilla Firefox.
{
var cTxt = "abc"; // here it is dynamic data - i have given abc as static here
var contInp = document.createElement("input");
contInp.setAttribute("value", cTxt);
document.body.appendChild(contInp);
contInp.focus();
contInp.select();
document.execCommand("copy");
document.body.removeChild(contInp);
}
Can anyone please help me sort out this problem? It is working fine in Chrome.