Base: Tidy up the events.html test page a little bit

This commit is contained in:
Andreas Kling 2020-03-21 14:53:13 +01:00
parent 08b17d70af
commit a7d458f76a
Notes: sideshowbarker 2024-07-19 08:12:12 +09:00

View file

@ -4,18 +4,14 @@
<script>
document.addEventListener("DOMContentLoaded", function() {
alert("It loaded!");
);
function on_mousedown() {
alert("Mouse down!");
}
function on_mousemove() {
alert("Mouse move!");
}
document.getElementById("my_div").addEventListener("mousedown", on_mousedown);
document.getElementById("my_div").addEventListener("mousemove", on_mousemove);
document.getElementById("my_div").addEventListener("mousedown", function() {
alert("Mouse down!");
});
document.getElementById("my_div").addEventListener("mousemove", function() {
alert("Mouse move!");
});
});
</script>
</head>
<body>