Tiny Library for copy text in clipboard.
- Fast
- Compact
- No dependencies
- Event after copy (e.g :
AJAX
,send a GET request)
Argument Name | Goal |
---|---|
data-copy-text | Set Text |
data-copy-from | Set target, to get the text from they |
data-copy-after | Execute the code after copying |
data-copy-link | Send GET Request to a link after copying |
To view the full details, run the Example.html file.
<button data-copy-text="Hello! how are you?">Click , Copy!</button>
Enter Text : <input class="input_text" name="text" type="text">
<br>
<button data-copy-from=".input_text">Click , Copy!</button>
It will be completed in the future.
<button data-copy-text="5+5" onclick="copy.text(this);">Click , Copy text with onclick</button>
<button data-copy-from="#label_text" onclick="copy.from(this);">Click , Copy from #id with onclick</button>
<button onclick="copy.copy_text('Hello my friend!');">Click , Copy text</button>
CopyClipboard is licensed under the GNU General Public License.