mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
Base: Tidy up the events.html test page a little bit
This commit is contained in:
parent
08b17d70af
commit
a7d458f76a
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…
Add table
Add a link
Reference in a new issue