Difference between revisions of "User:Hef/html"

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

Revision as of 17:14, 10 April 2017