view tests/jserror.ur @ 726:6fc633d990e7

onError
author Adam Chlipala <adamc@hcoop.net>
date Thu, 16 Apr 2009 12:36:01 -0400
parents
children ba4c230b7231
line wrap: on
line source
fun main () : transaction page = return <xml>
  <body onload={onError (fn s => alert "There was an error."); error <xml>Badder</xml>}/>
</xml>