formPage.html 3.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798
  1. <html>
  2. <head>
  3. <title>We Leave From Here</title>
  4. <script type="text/javascript">
  5. function changePage() {
  6. var newLocation = '/common/page/3';
  7. window.location = newLocation;
  8. }
  9. </script>
  10. </head>
  11. <body>
  12. <a href="/index.html">Home Page Link</a><br/><br/>
  13. There should be a form here:
  14. <form method="get" action="resultPage.html" name="login">
  15. <input type="submit" id="submitButton" value="Hello there"/>
  16. </form>
  17. <form method="get" action="resultPage.html" name="image">
  18. <input type="image" id="imageButton" alt="click me!" src="images/button.gif"/>
  19. </form>
  20. <form method="get" action="resultPage.html" name="optional" style="display: block">
  21. Here's a checkbox: <input type="checkbox" id="checky" name="checky" value="furrfu"/><br/>
  22. <select name="selectomatic">
  23. <option selected="selected">One</option>
  24. <option>Two</option>
  25. <option>Four</option>
  26. <option>Still learning how to count, apparently</option>
  27. </select>
  28. <select name="multi" id="multi" multiple="multiple">
  29. <option selected="selected">Eggs</option>
  30. <option>Ham</option>
  31. <option selected="selected">Sausages</option>
  32. <option>Onion gravy</option>
  33. </select>
  34. <select name="no-select" disabled="disabled">
  35. <option value="foo">Foo</option>
  36. </select>
  37. <br/>
  38. <input type="radio" id="cheese" name="snack" value="cheese"/>Cheese<br/>
  39. <input type="radio" id="peas" name="snack" value="peas"/>Peas<br/>
  40. <input type="radio" id="cheese_and_peas" name="snack" value="cheese and peas" checked/>Cheese and peas<br/>
  41. <input type="radio" id="nothing" name="snack" value="nowt" disabled="disabled"/>Not a sausage
  42. <input type="hidden" name="hidden" value="fromage" />
  43. <p id="cheeseLiker">I like cheese</p>
  44. <input type="submit" value="Click!"/>
  45. </form>
  46. <form method="get" action="resultPage.html" name="disable">
  47. <input type="text" id="working"/>
  48. <input type="text" id="notWorking" disabled="true"/>
  49. <textarea id="notWorkingArea" disabled="disabled" cols="5" rows="5"></textarea>
  50. <textarea id="withText" rows="5" cols="5">Example text</textarea>
  51. <textarea id="emptyTextArea" rows="5" cols="5"></textarea>
  52. </form>
  53. <form method="post" action="resultPage.html">
  54. <select id="redirect" onchange="javascript:changePage();">
  55. <option selected="selected">One</option>
  56. <option id="changeme">Two</option>
  57. </select>
  58. <input id="no-type" />
  59. <input type="file" id="upload" onchange="document.getElementById('fileResults').innerHTML = 'changed';" />
  60. <span id="fileResults"></span>
  61. </form>
  62. <form method="get" action="resultPage.html">
  63. <input type="text" value="name" name="id-name1"/>
  64. <input type="text" value="id" id="id-name1"/>
  65. <!-- Reverse the ordering -->
  66. <input type="text" value="id" id="id-name2"/>
  67. <input type="text" value="name" name="id-name2"/>
  68. <input name="readonly" readonly="readonly" />
  69. </form>
  70. <!-- form with nested children -->
  71. <form method="get" action="resultPage.html" id="nested_form">
  72. <div>
  73. <input type="text" value="name" name="x"/>
  74. </div>
  75. <input type="submit" />
  76. </form>
  77. </body>
  78. </html>