Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Copy to clipboard 2

Status
Not open for further replies.

4x4uk

Technical User
Apr 30, 2002
381
GB
I have a form with the following text area field, does anyone know how to get the form submit button to select all of the text in the textarea and copy it to the clipboard

<textarea name=&quot;item1&quot; rows=&quot;4&quot; cols=&quot;15&quot; >The stuff to copy</textarea>

Many thanks
Ian It's not a lie if you believe it!

 
<TEXTAREA ID=&quot;holdtext&quot; STYLE=&quot;display:none;&quot;>
This text will be copied onto the clipboard when you click the button below. Try it!
</TEXTAREA>
<BUTTON onClick=&quot;Copied=holdtext.createTextRange();Copied.execCommand(&quot;Copy&quot;);&quot;>Copy to Clipboard</BUTTON>

Rick -----------------------------------------------------------
RISTMO Designs
Arab Church
 
I believe from memory that was explained in the links from the thread I posted as well. _________________________________________________________
for the best results to your questions: FAQ333-2924
Is your question a most FAQ?? Find out here FAQ333-3048
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top