The blur event fires when an element loses focus.
The onChange event gets triggered when the state of an element is changed
"Edit you probably only want to validate when the value changes and field loses focus that s why imo the onchange event would be more appropriate than onblur not onblure"
from question "HTML 5 input type email check validation on lost focus"
"Onchange is a better choice than onblur or focusout because blur and focusout also fire when the contents of the text field hasn t changed"
from question "Automatically save textbox contents"