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


  • 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


Selecting Textarea:


<!--Script by>
<!-- Free javascripts @ -->
<script type="text/javascript">
function SelecText(testarea)
<!-- Script by -->
  • Release Date - 22.6.2007
  • Get free version without ©copyright link for just $10/-
  • For customization of this script or any script development, mail to


  • 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
  • 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....


Related Scripts

Free Javascript Scripts

Ask Questions

Ask Question