Select the content of Textarea just by a single cl

You can use this free javascript code to select the contents of textarea just by clicking a button

Features

  • Type any text in the textarea
  • Just click the button below and it will select all the text inside the text area
  • Press control + C to copy the text and paste it anywhere

Preview

Selecting Textarea:

Downloads


<!--Script by hscripts.com-->
<!-- Free javascripts @ http://www.hscripts.com -->
<script type="text/javascript">
function SelecText(testarea)
{
document.getElementById("testarea").select()
}
</script>
<!-- Script by hscripts.com -->
  • Release Date - 22.6.2007
  • Get free version without ©copyright link for just $5/-
  • For customization of this script or any script development, mail to support@hscripts.com

Usage

  • Create a form with name "select" and place a text area having its id as "testarea"
  • <form name="select">
    <textarea id="testarea" rows="3" cols="40">
    Just click on the button and get text area selected. Now press Ctrl+C to copy the text and paste it anywhere
    </textarea> 
  • Create a button with any name and call the function SelecText(testarea) by using onclick event.
  • <input type="button" value="Select Text"onClick="SelecText(testarea)">  
  • Now just copy the above free javascript code inside your html head tag.
  • Secting text area....

License

  • The javascript (misspelled as java script) is given under GPL License.
  • i.e. Free use for those who use it as it is.
  • Free, if your modification does not remove our copyright information and links.
  • Detailed License information can be found here.
  • You can purchase the script if your requirements does not meet GPL License terms.

Related Scripts

Free Javascript Scripts