Categories:

Home / Free JavaScripts / Forms / Here

Cut & Paste "Select-all" form element script II

Credit: JavaScript Kit

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


CopyRight (c) 2018 JavaScript Kit. NO PART may be reproduced without author's permission. Contact Info