Copy text to a user's clipboard using the modern execCommand interface. This uses the same browser API - document.execCommand as the much-hyped clipboard.js, but doesn't involve itself in the DOM or event binding.
Detect whether a browser supports the execCommand interface for copying text.
Returns boolean whether the browser support text
Copy a snippet of text to a user's pasteboard if the user has proper browser support.
textstring text snippet
// using browser events with a clickvar eCopy = ;var a = document;a;
Returns boolean whether the text was copied