HTML » input » onselect

The onselect attribute is an event that allows the execution of JavaScript code when the form control (field) gains focus.