JavaScript DHTML/Event onMethod/onMouseLeave

Материал из Web эксперт
Перейти к: навигация, поиск

"onMouseLeave" Example

    
<head>
<script language="JavaScript">
    function function1(){
        alert("The "+event.type+" event fired") 
    } 
</script>
</head>
<body>
    <div id="myDiv" onmouseleave="function1()">
        Move the mouse over and out.
    </div>
</body>