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

  <body onload="onLoadHandler();">
    <form>
      <button type='submit' id='b1'>submit</button>
      <button type='reset'>text</button>
    </form>
  </body>
</html>