August 1999
Intermediate to advanced
1488 pages
72h 53m
English
onSelect="command"The onSelect event handler of an instance of a Text object is fired when the text in the box is highlighted. Care should be taken when using this event handler, because it is possible to get into an infinite loop when using other events or methods that are fired when focus is placed on the text box.
Note
Note that Netscape defined this function in JavaScript 1.0, however is not fully implemented in any version released to date. Opera browsers do not support this function either.
Listing 7.502 has two text boxes. If the user highlights the text in the first text box, the default text of the first text box is written to the second text box.
Read now
Unlock full access