JavaScript DHTML/Event onMethod/onMouseUp

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

"onMouseUp" Example

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