<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <title>DHTML: Dynamic Form Submission</title>
  <script type="text/javascript">
  <![CDATA[
    function test() {
      var test = document.getElementById('test');
      test.submit();
    }
  ]]>
  </script>
 </head>
 <body>
  <form action="test.cgi" method="post" id="test">
   <p>
     <input type="button" onclick="test()" value="Press this button to start the test"/>
     <input type="hidden" name="result" value="pass"/>
     <input type="hidden" name="method" value="post"/>
   </p>
   <p>After pressing the button, a green line of text should appear.</p>
  </form>
 </body>
</html>
