Definition: The onfocus event is used to define actions to be taken when the object to which the event is attached gains the focus ie. bocomes current. This is not a reserved word so you can declare your own variable or function called onfocus but if you do then you will not be able to use this event.
Examples:
<input type="text" onfocus="initValue(this)"

