<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
</head>
<body>
<button onclick="clickme()">click me</button>
<button onmouseover="hover()">hover me</button>
<button onmouseout="out()">mouse out</button>
<input type="text" oninput="type()" />
</body>
<script>
function clickme() {
alert("button clicked");
};
function hover() {
alert("hover function called");
};
function out() {
alert("onmouseout function called");
};
function type() {
alert("type function called");
};
</script>
</html>