Message:
Display text:
In this example we check for the SELECT event to occur. This occurs when some text in a textarea or textbox is selected. To see this, select some text in this paragraph and an alert box will pop up indicating that the select event has occurred.