A JavaScript Flash free clipboard implementation.
<script src="https://cdn.rawgit.com/Triforcey/clip-j/d4cf52adb248f236331acd8401610fc198a1fb57/clip-j.js" ></script>
clip('text-to-copy');
For security reasons, this only works when the user caused the clip command to run. This can be caused through clicking something, or something as little as moving their cursor.
https://cdn.rawgit.com/Triforcey/clip-j/b9bf3d7422abf459381df34f850bdadcf6545d65/test.html