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 @ https://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 $10/-
  • 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

Related Scripts

Free Javascript Scripts


Ask Questions

Ask Question