'; } resultcode.value = output; } }; document.getElementById('SelectAndCopy') .onclick = function (){ resultcode.select(); document.execCommand("copy"); document.getElementById('mesage').innerHTML ="Copied"; }; document.getElementById('cleartexts').onclick = function(){ resultcode.value =""; };