onmouseleave Event in JavaScript
onmouseleave Event in JavaScript
The onmouseleave event is used to occur when the mouse pointer is moved out of an element. It is used in combination with the onmouseenter event. In that event, the mouse pointer is moved onto an element.
For your Information:-
The onmouseleave event is similar to onmouseout event but it does not bubble like the onmouseout event.
Syntax:-
Its syntax is:- < anyElement onmouseleave="my_script" > OR object.onmouseleave= function(){my_script} OR object.addEventListener("mouseleave", my_script)