Edit This Code:
See Result »
This example uses the HTML DOM to assign an "onselect" event to an input element.
Select some text:
Result: