mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
14 lines
436 B
HTML
14 lines
436 B
HTML
<body>
|
|
<input id="clicked">
|
|
<script>
|
|
document.getElementById("clicked").addEventListener("mousedown", function () {
|
|
window.alert("mousedown"); },
|
|
false);
|
|
document.getElementById("clicked").addEventListener('mouseup', function() {
|
|
window.alert("mouseup"); },
|
|
false);
|
|
document.getElementById("clicked").addEventListener("click", function() {
|
|
window.alert("clicked"); },
|
|
false);
|
|
</script>
|
|
</body>
|