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