Java Applets
Popup Maker
Top Picks
New Scripts
Java Scripts

Highlighting Form Text Areas on Mouse Click
Back to JavaScript Main Index

This simple script set shows how to highlight (select) the text in a form's textarea by clicking on a link.  Useful for code listings, order form information, or other material the visitor may wish to copy to the clipboard with Control+C.

The code listing is its own example.
(See below.)
Clicking the 'here' link will select the text.
Clicking elsewhere will deselect the text.
Click here to select the code in the window below.
Use Ctrl+C to copy it to your clipboard.

Home Java Applets JavaScript Index Resources New Scripts Need Still More Scripts?

Copyright 1996 - 2012 by OEC Corp and

CodeBrain InterNET