diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-21 14:53:13 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-21 14:53:13 +0100 |
commit | a7d458f76a654d145a2b466ff53c02bcac0505e6 (patch) | |
tree | 4225aaae7e854227fba2e5fa5de412661e5b460e /Base | |
parent | 08b17d70af21c46247cf07c89073a0cb1ed7b1bc (diff) | |
download | serenity-a7d458f76a654d145a2b466ff53c02bcac0505e6.zip |
Base: Tidy up the events.html test page a little bit
Diffstat (limited to 'Base')
-rw-r--r-- | Base/home/anon/www/events.html | 18 |
1 files changed, 7 insertions, 11 deletions
diff --git a/Base/home/anon/www/events.html b/Base/home/anon/www/events.html index ed38a7178c..47754874a0 100644 --- a/Base/home/anon/www/events.html +++ b/Base/home/anon/www/events.html @@ -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> |