Difference between revisions of "User:Hef/html"

From sshcWiki
Jump to navigation Jump to search
Line 4: Line 4:
 
window.onload = function () {
 
window.onload = function () {
 
   var foo = document.getElementById("foo");
 
   var foo = document.getElementById("foo");
   foo.onclick = function() { mw.notify("Hello, World!") };
+
   foo.onclick = function() {mw.notify("Hello, World!",{title:"greetings",type:"info"}) };
 
}
 
}
 
</script>
 
</script>
 
</html>
 
</html>

Revision as of 17:16, 10 April 2017