JavaScript Copy to Clipboard Without Flash and Libraries

Recent versions of the popular browsers now support copy to clipboard natively through the document.execCommand() method. Calling the method with 'copy' command will copy the current selection to the clipboard. Before the copy command support was added, developers had to use Flash-based approach such as ZeroClipboard to provide this functionality.…