Se assegni l'onclick direttamente nell'html, aggiungi return false,
es:
codice HTML:
<button onclick="stesso();return false;">Copia</button>