Horje

Definition and Usage of HTML onfocus Event Attribute

The onfocus attribute fires the moment that the element gets focus.

Onfocus is most often used with <input>, <select>, and <a>.

Tip: The onfocus attribute is the opposite of the onblur attribute.





Category:
Web Tutorial
Sub Category:
HTML Form Events Attribute
Uploaded by:
Admin