Sha256: 2fe0e5b141e2cf429a828260016c503a92a1f079c9b5e2547830d99bfbbffddb
Contents?: true
Size: 1.18 KB
Versions: 13
Compression:
Stored size: 1.18 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
13 entries across 13 versions & 2 rubygems