scusate non resco proprio a fare in modo di cliccare il tasto copia e che venga memorizzato come ctrl+c
dove sbaglio?
Codice PHP:
<textarea type="text" rows="4" cols="50">At w3schools.com you will learn how to make a website. \n They offer free tutorials in all web development technologies.</textarea><button onclick="myFunction8()">Copia</button>
<script>function myFunction() { var copyText = document.getElementById("myInput8"); copyText.select(); copyText.setSelectionRange(0, 99999) document.execCommand("copy"); }</script>