Copy to clipboard

This module makes it easy to create a “copy to clipboard” button for any input element. Simply add a button element with class “clipboard-copy” as a sibling of the input element. The class name can be changed in configuration at /admin/config/user-interface/copy-to-clipboard.

The clipboardjs module offers similar functionality, but it adds a copy to clipboard function for text fields.


Source: https://drupal.org/project/project_module/feed/all