summaryrefslogtreecommitdiff
path: root/tests/strcspn.ur
blob: 8066010b5ae8088c6573d55d206ac3b6d39c44ff (plain)
1
2
3
4
5
6
fun main () : transaction page =
    s <- source "";
    return <xml><body>
      <ctextbox source={s}/>
      <button onclick={fn _ => v <- get s; alert (show (strcspn v "0123456789"))}/>
    </body></xml>