added dispatching for mousedown and mouseup events, fixes #5705

This commit is contained in:
Peter 2015-04-16 10:41:02 -04:00
parent b0a7d1bf86
commit c069d1753e
4 changed files with 79 additions and 31 deletions

View file

@ -0,0 +1,14 @@
<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>