comparison tests/bodyClick.ur @ 2156:d857da05f042

Allow mouse and key events for <body>
author Adam Chlipala <adam@chlipala.net>
date Thu, 02 Jul 2015 12:42:49 -0400
parents
children
comparison
equal deleted inserted replaced
2155:7ce804ecd56b 2156:d857da05f042
1 fun main () : transaction page = return <xml>
2 <body onclick={fn _ => alert "You clicked the body."}
3 onkeyup={fn _ => alert "Key"}>
4 <p>Text</p>
5 </body>
6 </xml>