[Contents] [Previous] [Next] [Index]

onSelect

Executes JavaScript code when a select event occurs; that is, when a user selects some of the text within a text or textarea field.

Event handler for

Text, Textarea

Implemented in

Navigator 2.0

Syntax

onSelect="handlerText"

Parameters

handlerText
JavaScript code or a call to a JavaScript function.

Event properties used

type
Indicates the type of event.

target
Indicates the object to which the event was originally sent.

Examples

The following example uses onSelect in the valueField Text object to call the selectState function.

<INPUT TYPE="text" VALUE="" NAME="valueField" onSelect="selectState()">

See also

For general information on event handlers, see "General Information about Events".

For information about the event object, see event.


[Contents] [Previous] [Next] [Index]

Last Updated: 10/31/97 16:34:02


Copyright © 1997 Netscape Communications Corporation