Edit This Code:
See Result »
This example demonstrates how to assign an "onfocus" event to an input element.
Enter your name:
Result: