Difference between revisions of "User:Hef/html"

From sshcWiki
Jump to navigation Jump to search
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<html>
 
<html>
<button id=foo>hi</button>
+
<button id=foo>Say "Hello, World"</button>
 
<script>
 
<script>
//alert("Hello, World!");
+
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