html onblur

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