Mercurial > urweb
view tests/sleep.ur @ 1555:d5c961c709f9
New client-side, document-level event handlers
author | Adam Chlipala <adam@chlipala.net> |
---|---|
date | Sat, 03 Sep 2011 11:48:12 -0400 |
parents | 500e93aa436f |
children |
line wrap: on
line source
fun annoyer () = alert "Hi!"; sleep 5000; annoyer () fun main () : transaction page = return <xml><body onload={annoyer ()}/></xml>