MediaWiki:Common.js: Difference between revisions

MediaWiki interface page
No edit summary
No edit summary
Line 2: Line 2:
(function () {
(function () {
console.log('Test siin siis?')
console.log('Test siin siis?')
   let myElement = document.getElementById('mw-hello-world');
   var myElement = document.getElementById('mw-hello-world');
   myElement.innerHTML = '<html>Hello World!!!</html>';
   myElement.innerHTML = '<html>Hello World!!!</html>';
}());
}());


console.log('Test?');
console.log('Test?');

Revision as of 20:01, 11 September 2022

/* Any JavaScript here will be loaded for all users on every page load. */
(function () {
	console.log('Test siin siis?')
  var myElement = document.getElementById('mw-hello-world');
  myElement.innerHTML = '<html>Hello World!!!</html>';
}());

console.log('Test?');