Tag:class ati isp var Command Copy create display child
var St r =" Blog Park is the best! " var tempinput = document.createelement (' input ' = Url2; Document.body.appendChild (Tempinput); Tempinput.select (); // Select object Document.execcommand ( "Copy"); // Execute browser copy command tempinput.classname = ' tempinput ' ; TempInput.style.display= ' None '; Document.body.removeChild ("Tempinput");
"The blog park is the best!"
Like to copy this sentence to the Clipboard.
var str = "The best blog park!";
var tempinput = document.createelement (' input ');
Tempinput.value = URL2;
Document.body.appendChild (Tempinput);
Tempinput.select (); Select Object
Document.execcommand ("Copy"); Perform a browser copy command
Tempinput.classname = ' tempinput ';
Tempinput.style.display= ' None ';
Document.body.removeChild ("Tempinput");
JS Copy Text to clipboard