Getting the selected text: http://developer.mozilla.org/en/docs/DOM:window.getSelection
Using the clipboard to copy and paste: http://developer.mozilla.org/en/docs/index.php?title=Using_the_Clipboard&printable=yes Mark Finkle On May 5, 7:03 am, Fatih Özkan <[EMAIL PROTECTED]> wrote: > Im trying to copy the selected text into clipboard in JavaScript > in firefox mozilla. But i couldnt find a way. recently i came across a > bit of code as : > > clip = Components.classes["@mozilla.org/webshell;1"].getService(); > clip.QueryInterface(Components.interfaces.nsIClipboardCommands); > clip.copySelection() > > naturally i didnt work wiht out knowing details. Could you help me about > this? > How could get webshell API? or could make code work ? Or is there another > way to do it? _______________________________________________ dev-embedding mailing list [email protected] https://lists.mozilla.org/listinfo/dev-embedding
