mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-01 20:10:28 +00:00
Base: Tidy up the events.html test page a little bit
This commit is contained in:
parent
08b17d70af
commit
a7d458f76a
Notes:
sideshowbarker
2024-07-19 08:12:12 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a7d458f76a6
1 changed files with 7 additions and 11 deletions
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue