Answers for "mouseout anchor tag problem"

0

mouseout anchor tag problem

function onMouseOut(event) {
        //this is the original element the event handler was assigned to
        var e = event.toElement || event.relatedTarget;
        if (e.parentNode == this || e == this) {
           return;
        }
    alert('MouseOut');
    // handle mouse event here!
}



document.getElementById('parent').addEventListener('mouseout',onMouseOut,true);
Posted by: Guest on November-18-2020

Browse Popular Code Answers by Language