JavaScript - OffFocus event?
try using onblur, it is called when an element loses focus.
Use the onBlur
event:
<input ctype="text" onfocus="this.style.color='red';" onblur="this.style.color='black';"/>
try using onblur, it is called when an element loses focus.
Use the onBlur
event:
<input ctype="text" onfocus="this.style.color='red';" onblur="this.style.color='black';"/>