copiar o valor do botão para a função da área de transferência JavaScript
//U need to have a button with the id the same as its name because it is going to be sent to the clipborad.
/*Like this: */
<button onClick="SelfCopy(this.id)" id="1">1</button>
<button onClick="SelfCopy(this.id)" id="2">2</button>
<button onClick="SelfCopy(this.id)" id="3">3</button>
function SelfCopy(copyText)
{
navigator.clipboard.writeText(copyText);
alert("You just copied this: (" + copyText + ").");
}
Different Dog