The "onblur" event fires when the current control no longer has the cursor inside of it. So if you type something in the textbox and click something else, the "onblur" event fires because the cursor is not focused on that control anymore
See this[
^]