I\'m building a custom right-click menu for my system and I need to know how can I make a JavaScript function to copy the selected text, basically 100% like the original rig
A workable cross-browser approach (minus iOS) would be to use ExternalInterface and setClipboard.
So you would have a swf, flash file, that only listens to a function you call from Javascript to set the clipBoard.