kopia lustrzana https://github.com/sp9skp/spdxl
15 wiersze
310 B
JavaScript
15 wiersze
310 B
JavaScript
function clipboardCopyFun(id) {
|
|
/* Get the text field */
|
|
var copyText = document.getElementById(id);
|
|
|
|
/* Select the text field */
|
|
copyText.select();
|
|
|
|
/* Copy the text inside the text field */
|
|
document.execCommand("Copy");
|
|
|
|
/* Alert the copied text */
|
|
alert("skopiowano: " + copyText.value);
|
|
}
|
|
|