Multiple choice

Which of the following event occurs when an object loses its focus.

  1. onblur

  2. onfocuslost

  3. onunload

  4. onreset

  5. onchange

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

The onblur event occurs when a control on the form loses it focus. This event is mainly used for data validation purpose when the user tries to leave a control after filling the data.