Event handler for Text,Textarea
code whenever the user selects some of the text within a text or textarea
field. The onSelect event handler uses the following properties
of the Event Object:
type - indicates the type of event.
target - indicates the target object to which the event was sent.
In the following example, selecting some of the text in the Text
object causes the 'selectEvent' function to execute:
<INPUT TYPE="text" onSelect="selectEvent()">