Run JavaScript when an element loses focus
How about onblur event :
<input type="text" name="name" value="value" onblur="alert(1);"/>
onblur
is the opposite of onfocus
.
How about onblur event :
<input type="text" name="name" value="value" onblur="alert(1);"/>
onblur
is the opposite of onfocus
.