summaryrefslogtreecommitdiff
path: root/tests/ctextboxAttrs.ur
blob: 84cd087a9a7bd93ce2a9b2ec612e5079660e4683 (plain)
1
2
3
4
5
6
fun main () : transaction page =
    s <- source "Initial";
    return <xml><body>
      <ctextbox source={s} onclick={fn ev => alert ("Clicky " ^ show ev.ScreenX)}
                           onkeypress={fn ev => alert ("Code " ^ show ev.KeyCode)}/>
    </body></xml>