Javascript Basics Tutorial: Lost Focus Event

The onblur event and onfocus are relative events. When the cursor leaves the currently focused object, the onblur event is triggered and the called program is executed at the same time.

Look at the following code:

    失去焦点事件 
请输入你的身份证号:

When the text When the box loses focus, "Please enter username" will pop up

Continuing Learning
||
失去焦点事件
请输入你的身份证号:
submit Reset Code
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!