Sha256: a8eca44d2dab9ff45c8f6dcef7425f7036fc9be42c53d36e72dfd134e4dd0fd3

Contents?: true

Size: 1.19 KB

Versions: 48

Compression:

Stored size: 1.19 KB

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");
        button.setAttribute("id", "new_button");
        document.body.appendChild(button);
      }

      function removeDiv() {
        var button = document.getElementById("new_button");
        document.body.removeChild(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"/>
    <input type="button" onclick="setTimeout(function() {removeDiv();}, 2000);" value="Remove Button"/>
  </body>
</html>


Version data entries

48 entries across 48 versions & 4 rubygems

Version Path
page-object-0.9.4 features/html/async.html
page-object-0.9.3 features/html/async.html
page-object-0.9.2 features/html/async.html
page-object-0.9.1 features/html/async.html
page-object-0.9.0 features/html/async.html
page-object-0.8.10 features/html/async.html
page-object-0.8.9 features/html/async.html
page-object-0.8.8 features/html/async.html
page-object-0.8.7 features/html/async.html
page-object-0.8.6.1 features/html/async.html
page-object-0.8.6 features/html/async.html
page-object-0.8.5 features/html/async.html
page-object-0.8.4 features/html/async.html
page-object-0.8.3 features/html/async.html
page-object-0.8.2 features/html/async.html
page-object-0.8.1 features/html/async.html
page-object-0.8 features/html/async.html
page-object-0.7.6 features/html/async.html
page-object-0.7.5.1 features/html/async.html
page-object-0.7.5 features/html/async.html