Edit This Code:
See Result »
This example uses the addEventListener() method to attach a "focus" event to an input element.
Enter your name:
Result: