|
a)Create a form with name "select" and place a text area having its id as "testarea"
Ex:- <form name="select">
<textarea id="testarea" rows="3" cols="40"></textarea></form>
b)Create a button with any name and call the function SelecText(testarea) by using onclick event.
Ex- <input type="button" value="Select Text" onClick="SelecText(testarea)">
c)Now just copy the above free javascript code inside your html head tag.
Selecting text area....
|