Skip welcome & menu and move to editor
Welcome to JS Bin
Load cached copy from
 
<!DOCTYPE html>
<html>
<head>
  <meta charset="utf-8">
  <title>JS Clipboard API - Support in Chrome</title>
</head>
<body >
  <h2>Select any of this text, tap the button to copy it to clipboard.</h2>
 
   <ul>
      <li>Shipping in Chrome 42 and Opera 29. <a href="https://www.chromestatus.com/feature/5223997243392000">Chromestatus entry</a>
        <li>Internet Explorer supports it but has a security dialog to confirm you allow access to Clipboard. (None in Chrome!)</li>
      <li>API not supported by Safari or Firefox yet.</li>
      <li>We're closer to retiring the Flash-based zeroclipboard! 
        <li><A href="http://dev.w3.org/2006/webapi/clipops/clipops.html#events-that-are-allowed-to-modify-the-clipboard">W3C Clipboard API spec</a>
  </ul>
  
  
  <p>
  <button>Copy to clipboard</button>
  <p>
  
  <textarea placeholder="paste in here!" style="min-width: 300px; min-height: 70px"></textarea>
    
    
    <br><br>
    
   
    
<p>    Here's the JS behind the scenes:
  <p>
    <!-- OH YOU KNOW IT -->
    <style>script { display:block; white-space:pre; font-family: consolas, monospace; font-size: 80%;}</style>
</body>
</html>
Output

This bin was created anonymously and its free preview time has expired (learn why). — Get a free unrestricted account

Dismiss x
public
Bin info
anonymouspro
0viewers