html onblur

HTML
<input type="text" onblur="myFunction()">
 
Source

Also in HTML: