<select onFocus=””>

Attribute of
<select> HTML Tag
What does <select onFocus=""> do?
Triggers an event when a select item receives focus.

Event Handling With the Select Element

The 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.

Claire is seasoned technical writer, editor and HTML enthusiast.

Browser Support for onFocus

AllAllAllAllAllAll