|
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">
Just click on the button and get text area selected. Now press Ctrl+C to copy the text and paste it anywhere
</textarea>
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....
|