- Attribute of
- <select> HTML Tag
- What does
- Triggers an event when a select item receives focus.
Event Handling With the Select Element
onFocus attribute of
<select> lets you dynamically change something on screen when it gets focus. For example, we could change the color of a form field when the user clicks on it.
Browser Support for onFocus