Difference between revisions of "User:Hef/html"

From sshcWiki
Jump to navigation Jump to search
Line 1: Line 1:
 
<html>
 
<html>
<button id=foo>hi</button>
+
<button id=foo>Alert("Hello, World")</button>
 
<script>
 
<script>
//alert("Hello, World!");
+
window.onload = function () {
 +
  var foo = document.getElementById("foo");
 +
  foo.onclick = function() { alert('Hello, World!') };
 +
}
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 10:01, 10 April 2017