Abakada HTML Demo: onblur Event Example


The onblur event occurs when an object loses the input focus. The event can be used to trigger a function when the user leaves a form field, for example.

In this example, an alert will display each time the onblur event fires. Click on each textbox to move the focus from one to the next.

First Name
Last Name
Phone Number

View Source   Exit

© 2025 Reynald Nuñez and asp.net.ph. All rights reserved.