Previous Example-|-Next Example-|-Return to Chapter Listing

Example 12.6:
onselect: Displaying an Alert Box


Selecting text in the text box should run the onselect event handler, and open an Alert box. It's not working right now, though.


This is the text box we created: <FORM> <INPUT TYPE="TEXT" VALUE="Select part of this text. Select part of this text. Select part of this text." SIZE="50" onselect="alert('That\'s it, you highlighted something.')"> </FORM>
Previous Example-|-Next Example-|-Return to Chapter Listing