moveover js code example Example 1: javascript hover event element.onmouseover = function() { //Hovering } Example 2: on hover event onmouseover event