summaryrefslogtreecommitdiff
path: root/Base/home/anon/www
diff options
context:
space:
mode:
Diffstat (limited to 'Base/home/anon/www')
-rw-r--r--Base/home/anon/www/events.html25
-rw-r--r--Base/home/anon/www/welcome.html7
2 files changed, 26 insertions, 6 deletions
diff --git a/Base/home/anon/www/events.html b/Base/home/anon/www/events.html
new file mode 100644
index 0000000000..42f6ed948b
--- /dev/null
+++ b/Base/home/anon/www/events.html
@@ -0,0 +1,25 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script>
+ function foo() {
+ alert("It loaded!");
+ }
+ document.addEventListener("DOMContentLoaded", foo);
+
+ 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);
+ </script>
+ </head>
+ <body>
+ <div id="my_div">Hello there!</div>
+ </body>
+</html>
diff --git a/Base/home/anon/www/welcome.html b/Base/home/anon/www/welcome.html
index b76f32aac4..f611edb944 100644
--- a/Base/home/anon/www/welcome.html
+++ b/Base/home/anon/www/welcome.html
@@ -17,18 +17,13 @@ h1 {
color: #a00;
}
</style>
- <script>
- function foo() {
- alert("It loaded!");
- }
- document.addEventListener("DOMContentLoaded", foo);
- </script>
</head>
<body link="#44f" vlink="#c4c" background="90s-bg.png">
<h1>Welcome to the Serenity Browser!</h1>
<p>This is a very simple browser built on the LibWeb engine.</p>
<p>Some small test pages:</p>
<ul>
+ <li><a href="events.html">simple DOM events test</a></li>
<li><a href="dom.html">simple DOM JS test</a></li>
<li><a href="alert.html">alert() test</a></li>
<li><a href="small.html">small</a></li>