SHARE
TWEET

Untitled

a guest May 22nd, 2018 127 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4.     <title></title>
  5. </head>
  6. <body>
  7.     <button onclick="copy('das \r\n')">Copy</button>
  8.  
  9.     <script type="text/javascript">
  10.         function copy(text) {
  11.             var textarea = document.createElement('textarea');
  12.             textarea.value = text;
  13.             document.body.appendChild(textarea);
  14.             textarea.select();
  15.             var result = document.execCommand('copy');
  16.             document.body.removeChild(textarea)
  17.             return result;
  18.          }
  19.     </script>
  20. </body>
  21. </html>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top