Event onfocus

Event onfocus

<html>
<head>
<script>
function message()
{
alert(“This alert box was triggered by the onfocus event handler”);
}
</script>
</head>
<body>
<form>
Enter your name: <input onfocus=”message()” size=”20″>
</form>
</body>
</html>

OUTPUT:

Enter your name:
DOWNLOAD SOLUTION HERE