/* Copy to clipboard */
function myFunction() {
/* Get the text field */
var copyText = document.getElementById("myInput");
/* Select the text field */
copyText.select();
copyText.setSelectionRange(0, 99999); /*For mobile devices*/
/* Copy the text inside the text field */
document.execCommand("copy");
/* Alert the copied text */
alert("Copied the text: " + copyText.value);
}
<!--
<!--
|
Shadowhunters Quote of the Month
|
“Sometimes, when I have to do something I don't want to do, I pretend I'm a character from a book. It's easier to know what they would do.”
—Clockwork Angel
|
|
|
<!--
<!--
|
Your Shadowhunter Army Assignment
Check out all the new books coming out from Simon Teen in 2024!
WATCH THE VIDEO
Do you love the Herondales and hate ducks?
TAKE THE QUIZ
|
|