Event onblur

Event onblur

<html>
<head>
<script>
function message()
{
alert(“This alert box was triggered by the onblur event handler”);
}
</script>
</head>
<body>
<p>The onblur event occurs when an element loses focus. Try to click or write in the input field below, then click elsewhere in the document so the input field loses focus.</p>
<form>
Enter your name: <input onblur=”message()” size=”20″>
</form>
</body>
</html>

OUTPUT:

The onblur event occurs when an element loses focus. Try to click or write in the input field below, then click elsewhere in the document so the input field loses focus.

Enter your name:
DOWNLOAD SOLUTION HERE