summaryrefslogtreecommitdiff
path: root/tests/bodyClick.ur
diff options
context:
space:
mode:
Diffstat (limited to 'tests/bodyClick.ur')
-rw-r--r--tests/bodyClick.ur6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/bodyClick.ur b/tests/bodyClick.ur
new file mode 100644
index 00000000..9dcc64cf
--- /dev/null
+++ b/tests/bodyClick.ur
@@ -0,0 +1,6 @@
+fun main () : transaction page = return <xml>
+ <body onclick={fn _ => alert "You clicked the body."}
+ onkeyup={fn _ => alert "Key"}>
+ <p>Text</p>
+ </body>
+</xml>