But before this, it is not supported in most browsers because of security reasons. You need to ask the user to press
CTRL+C to copy the currently selected text.
The ZeroClipboard library uses invisible Adobe Flash movie for copying content to Clipboard. It works well with most browsers.
In this tutorial, I show How you can copy content to the clipboard with or without Flash.