Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $('.tooltip-social').click(function () {
- let textArea = document.createElement("textarea");
- textArea.value = window.location.href;
- this.appendChild(textArea);
- textArea.focus();
- textArea.select();
- document.execCommand('copy');
- this.removeChild(textArea);
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement