Difference between revisions of "User:Hef/html"
< User:Hef
Jump to navigation
Jump to search
(3 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<html> | <html> | ||
− | <button id=foo> | + | <button id=foo>Say "Hello, World"</button> |
<script> | <script> | ||
− | + | window.onload = function () { | |
+ | var foo = document.getElementById("foo"); | ||
+ | foo.onclick = function() {mw.notify("Hello, World!",{title:"Greetings",type:"info"}) }; | ||
+ | } | ||
</script> | </script> | ||
</html> | </html> |
Latest revision as of 17:17, 10 April 2017