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
For non-IE browsers you will most likely have to use a flash solution. For IE, however, this method works perfectly:
function copyToClipboard(s) { //only works in IE :( if (window.clipboardData && clipboardData.setData) { clipboardData.setData('text', s); } }