JS Events

 
<!DOCTYPE html>
<html>
<head>
    <title>JavaScript</title>
    <script>
       function hello() {      
            alert("Hello Everybody");
        } 
    </script>
</head>
<body onresize="hello()">
    <button onclick ="hello()">Click Me</button>
    <p ondblclick="hello()">Double Click on Me</p>
    <p onmouseenter="hello()">On Mouse Enter</p>
    <p onmouseout="hello()">On Mouse Out</p>
</body>
</html>