Javascript: copy to clipboard











Source code:

<textarea cols="60" id="textArea1" rows="6" style="height: 137px; width: 596px;">Copy me.</textarea><br/>
<input name="copy" onclick="window.prompt('Copy to clipboard: Ctrl+C (or Command+C on Mac), Enter', document.getElementById('textArea1').value);" type="button" value="Copy to Clipboard" />

See Also:







1 comment: