Not a Member Yet,
Click here to Register

ID: 83
Viewed: 3061
Added: Feb 14, 2002
Version:
Snippet uploaded by: snippet
Written By: snippet
Demo: Sorry, no demo



User Rated at: 0 Stars
Rate This:

Thank you for your vote. Please wait...

It appears you already voted for this snippet

It appears your vote value was empty

This little piece of code will let you select all the words in a textarea ot input box, so you have the ability to copy the contents.

The variables are really simple. The form's name is form1, and the textarea's name is t1. you can change those to what ever you want but make sure you keep it the same as the onclick fucntion in the input button.

Browsers: all

<!---Head--->
none

<!---Body--->


 <form name=form1>
<input type=button onClick="document.form1.t1.select();" value="Highlight All"><textarea name=t1 rows=16 cols=16>your words here</textarea></form>


No Comments to show

Please completely fill out the form below if you want to review this snippet. All reviews are subject to validation.


Replying to a Comment...


Adding your comment. Please wait...

Thanks for adding your comment!. After further review it will be added.

There was a problem adding your comment. Please try again.

Please complete all the fields in the form before sending.

© 2002 - 2024 snippetlibrary.com All Rights Reserved. Conditions
Do NOT follow this link or you will be banned from the site!