Difference between revisions of "User:Hef/html"
< User:Hef
Jump to navigation
Jump to search
Line 1: | Line 1: | ||
<html> | <html> | ||
− | <button id=foo> | + | <button id=foo>Alert("Hello, World")</button> |
<script> | <script> | ||
− | + | 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