diff options
author | Andreas Kling <kling@serenityos.org> | 2020-03-14 12:41:51 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2020-03-14 13:25:38 +0100 |
commit | 9c9d3f090429746df8a39232eb75467007463a9e (patch) | |
tree | c1681103843ba738899df25fc11f22ad2f5039ed /Base/home/anon/www/alert.html | |
parent | f94099f796a26920034159cf1adbdaef400c6756 (diff) | |
download | serenity-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.html | 10 |
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> |