Difference between revisions of "MediaWiki:Common.js"

From BSC Policy
Jump to navigationJump to search
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
<nowiki><script>alert("Testing. Please ignore.");</script></nowiki>
+
(function () {
 +
 
 +
  var myElement = document.getElementById('mw-hello-world');
 +
  myElement.innerHTML = '<html>Hello World!!!</html>';
 +
 
 +
}());

Revision as of 16:19, 3 September 2019

/* Any JavaScript here will be loaded for all users on every page load. */
(function () {

  var myElement = document.getElementById('mw-hello-world');
  myElement.innerHTML = '<html>Hello World!!!</html>';

}());