1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 02:07:35 +00:00

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

View file

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