2
   

Adding a JavaScript 'Copy to Clipboard'

 
 
chelseau
 
  1  
Reply Mon 12 Apr, 2004 03:30 am
a way simpler way to access the clipboard...
copied=toCopy.createTextRange();
copied.execCommand("Copy");

This is all you need to do to copy text (from a text area, named toCopy in my example) to the clipboard
0 Replies
 
ganhoc
 
  1  
Reply Mon 10 May, 2004 02:49 am
and how about the text from a java'edit zone ???????
Hi everybody. Very Happy I'm new member here. I have the same trouble. I want to creat a "copy contents to clipboard" button. I saw all ur solution, but my problem is that the text I want to copy was created by a java's function (it's the script using for composing mails in Yahoo!Mail, you can format and add hyperlink to the text ). I knew how to get the text from the text area, but from that edit zone...... I have no idea. Can you help me??
And I want to check the text'length, too. Thank you!!!!
0 Replies
 
 

Related Topics

 
Copyright © 2024 MadLab, LLC :: Terms of Service :: Privacy Policy :: Page generated in 0.07 seconds on 11/22/2024 at 03:50:10