Javascript Onblur
<input type="text" id="fname" onblur="onBlurFuntion()">
<script>
onBlurFuntion() {
console.log("Input Focus Lost")
}
</script>
Undefined
<input type="text" id="fname" onblur="onBlurFuntion()">
<script>
onBlurFuntion() {
console.log("Input Focus Lost")
}
</script>
document.getElementById("id").addEventListener("blur", function() {
alert("Hello World")
});