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:
parent
08b17d70af
commit
a7d458f76a
1 changed files with 7 additions and 11 deletions
|
@ -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>
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue