Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function copytoclipboard() {
- var posturl = document.getElementById("posturl");
- posturl.select();
- document.execCommand("copy");
- }
- <a onclick="copytoclipboard()">Copy Link</a>
- <input type="text" value="<%= request.original_url %>" id="posturl" style="opacity: 0;">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement