Cut & Paste "Select-all" form element script II
|
Description: Version two of the Select-All form element script, this one highlights the content of the specified form element as soon as the mouse sets focus on it.
Example:
Directions: Just add the below into the form element's tag:
onFocus="this.select()"
For example:
<form>
<textarea cols=15 rows=15 onFocus="this.select()">This is a test</textarea>
</form>
JavaScript Tools:
Site Info