Pilih Semua Teks di TextArea JavaScript

<textarea onclick="this.focus();this.select()"></textarea>

<!-- To copy the text -->
<textarea onclick="this.focus();this.select();document.execCommand('copy')"></textarea>
Adarsh077