<html>
<body>
<p>This example demonstrates how to assign an "onblur" event to an input element.</p>
<p>Write something in the input field, and then click outside the field to lose focus (blur).</p>
<input type="text" onblur="myFunction()">
<script>
function myFunction() {
alert("Input field lost focus.");
}
</script>
</body>
<!-- Mirrored from www.w3schools.com/jsref/tryit.asp?filename=tryjsref_onblur_html by HTTrack Website Copier/3.x [XR&CO'2014], Mon, 27 Jan 2020 03:02:21 GMT -->
</html>