js check for hover w3schools code example Example: javascript hover event element.onmouseover = function() { //Hovering }