define on mouse in html code example Example: javascript hover event element.onmouseover = function() { //Hovering }