I want to insert a button in my javascript code to copy this message to the clipboard.
"Text copied succesfully"
Any ideas?
<html>
<table>
<tr>
<th>CHILE</th>
</tr>
<tr>
<td id="fM"></td>
</tr>
<script>
function Chile(){
document.getElementById("fM").innerHTML = "Text copied succesfully";}
Chile();
</script>
</table>
</html>