Forum Moderators: open

Message Too Old, No Replies

Hightlight and Copy the Text

         

babloo

4:45 am on Sep 30, 2004 (gmt 0)

10+ Year Member



Hello,

I need a small help regarding the javascript highlight and copy. It is perfectly working in IE but not in Mozilla and other browsers. Could anyone pls help me in this issue. I am using execCommand("Copy") for IE. Is there any other alternate to this.

Thanks
Babloo

dcrombie

10:43 am on Sep 30, 2004 (gmt 0)



From a quick search on Google, it looks like Safari supports execCommand (since July '04);
and from Mozilla.org:

"Due to ambiguity in the Microsoft specification for execCommand, Mozilla requires that you specify all three parameters in order to guarantee the behavior you are expecting."

I'm not clear yet on what it actually does ;)