Sha256: 025991a26a84c060aba2459a15d970427f8348e0219851414fa2347fbb289469

Contents?: true

Size: 921 Bytes

Versions: 1

Compression:

Stored size: 921 Bytes

Contents

<html>
  <head>
    <title>Async Page</title>
    <script type="text/javascript">
      function unhide() {
        document.getElementById("target").style.display="block";
      }

      function hide() {
        document.getElementById("target").style.display="none";
      }
      
      function addDiv() {
        var button = document.createElement("input");
        button.setAttribute("type", "button");
        button.setAttribute("value", "New Button")
        document.body.appendChild(button);
      }
     </script>
  </head>
  <body>
    <input type="button" id="target" value="Target"/>
    <input type="button" onclick="setTimeout(function() {hide();}, 2000);" value="Hide Button"/>
    <input type="button" onclick="setTimeout(function() {unhide();}, 2000);" value="Unhide Button"/>
    <input type="button" onclick="setTimeout(function() {addDiv();}, 2000);" value="Create Button"/>
  </body>
</html>


Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
page-object-0.6.6 features/html/async.html