Advertisement
Guest User

Untitled

a guest
Feb 27th, 2015
188
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. function addLink(e) {
  2. e.preventDefault();
  3. var copyright = ' - Ler mais aqui: www.google.com';
  4. var novoTexto = copytext = window.getSelection() + copyright;
  5. (window.clipboardData ? window : event).clipboardData.setData('Text', copytext);
  6. }
  7.  
  8. window.addEventListener('copy', addLink);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement