Skip to content

bornbit/nanoclipboard

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

nanoclipboard

nanoclipboard is a JavaScript library for copy text to the clipboard. nanoclipboard has no dependencies.

Usage

var clipboard = new NanoClipboard("#btn");

clipboard.onSuccess = function(text) {
	alert("Copied: " + text);
};

clipboard.onError = function(text) {
	window.prompt("Ctrl+C: ", text);
};

CDN

nanoclipboard's CDN provided by jsDelivr CDN

https://www.jsdelivr.com/projects/nanoclipboard

Demo

License

MIT License

About

JavaScript library for copy text to the clipboard.

Topics

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors