default-submit-button-7.html 593 B

123456789101112131415161718192021
  1. <!DOCTYPE html>
  2. <html class="reftest-wait">
  3. <!-- Test: when there is no submit button and one is added,
  4. there is a default submit button -->
  5. <link rel='stylesheet' type='text/css' href='default-submit-button-style.css'>
  6. <script type="text/javascript">
  7. function onLoadHandler()
  8. {
  9. document.getElementById('b1').removeAttribute('type');
  10. document.documentElement.className = '';
  11. }
  12. </script>
  13. <body onload="onLoadHandler();">
  14. <form>
  15. <button type='submit' id='b1'>submit</button>
  16. <button type='reset'>text</button>
  17. </form>
  18. </body>
  19. </html>