Free Puzzle Questions with Answer using Java, C#, JavaScript and PHP

JavaScript - Event Handling

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

    <script language="JavaScript" type="text/javascript">
        function MouseIN(){
            document.getElementById('txtResult').value = "Mouse IN";
        }

        function MouseOUT(){
            document.getElementById('txtResult').value = "Mouse OUT";
        }

        function MouseClick(){
            document.getElementById('txtResult').value = "Mouse Clicked";
        }
    </script>
</head>
<body>
    <div onclick="MouseClick()" onmouseenter="MouseIN()" onmouseleave="MouseOUT()" style="border-style: solid; width:300px; height:300px">

    </div>

    <input type="text" id="txtResult" />
</body>
</html>