onFocus

Arguments

eventEvent

An object that contains properties and methods for inspecting and manipulating the browser event. This object can be referenced in JavaScript added to the event, either through Action Javascript or using Text Mode.

See Event (MDN Web Docs) for more details.

Description

Fires when the control is given focus.

Discussion

The onFocus event is triggered when the user gives focus to a control. Focus is typically given to a control when the user clicks on it.

Some controls do not support the onBlur event.