summaryrefslogtreecommitdiff
path: root/Base/home/anon/www/alert.html
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2020-03-14 12:41:51 +0100
committerAndreas Kling <kling@serenityos.org>2020-03-14 13:25:38 +0100
commit9c9d3f090429746df8a39232eb75467007463a9e (patch)
treec1681103843ba738899df25fc11f22ad2f5039ed /Base/home/anon/www/alert.html
parentf94099f796a26920034159cf1adbdaef400c6756 (diff)
downloadserenity-9c9d3f090429746df8a39232eb75467007463a9e.zip
LibWeb: Parse <script> elements and run any JavaScript found inside
This patch begins integrating LibJS into LibWeb. Document holds the JS::Interpreter for now, and it is created on demand when you first call Document::interpreter(). We also add a simple "alert()" function to the global object.
Diffstat (limited to 'Base/home/anon/www/alert.html')
-rw-r--r--Base/home/anon/www/alert.html10
1 files changed, 10 insertions, 0 deletions
diff --git a/Base/home/anon/www/alert.html b/Base/home/anon/www/alert.html
new file mode 100644
index 0000000000..fd96efbed4
--- /dev/null
+++ b/Base/home/anon/www/alert.html
@@ -0,0 +1,10 @@
+<!DOCTYPE html>
+<html>
+ <head>
+ <script>
+ alert("Hello friends!");
+ </script>
+ </head>
+ <body>
+ </body>
+</html>