JustCopy is a project mainly written in JavaScript, it's free.
jQuery clipboard copy
JustCopy a jQuery copy text to your clipboard plugin.