1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24
|
<script type='text/javascript'>
function mouseEvent(ev)
{
alert(ev.button);
}
if(typeof window.addEventListener != 'undefined') {
window.addEventListener('mouseup', mouseEvent, true);
} else if (typeof document.addEventListener != 'undefined') {
document.addEventListener('mouseup', mouseEvent, true);
} else if (typeof window.attachEvent != 'undefined') {
window.attachEvent('onmouseup', mouseEvent);
}
</script>
</head>
<body>
<div >bouton de souris</div>
</body>
</html> |
Partager