Edit This Code:
See Result »
This example uses the addEventListener() method to attach a "select" event to an input element.
Select some text:
Result: