<< Index

Delete

Page | Source
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
  <head>   
    <title>XQIB: Sample page</title>
    <meta charset="UTF-8"/>
    <script type="text/javascript" src="mxqueryjs/mxqueryjs.nocache.js"></script>
    <script type="application/xquery">
      declare updating function local:onclick($loc, $evtObj) {
        delete node b:dom()//input
      };
      
      b:addEventListener(b:dom()//input, "onclick", local:onclick#2)
    </script>
  </head>
  <body>
    <H1>Delete</H1>
    <input type="button" value="Click to remove me!"/>
  </body>
</html>