Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
(Created page with "→Any JavaScript here will be loaded for all users on every page load.: $(function () { var myElement = document.getElementById('mw-mywiki-example'); myElement.innerHTML...") |
|||
Line 3: | Line 3: | ||
var myElement = document.getElementById('mw-mywiki-example'); | var myElement = document.getElementById('mw-mywiki-example'); | ||
myElement.innerHTML = 'any HTML'; | myElement.innerHTML = 'any HTML'; | ||
}()); | |||
$(function () { | |||
$('#mw-mywiki-example').html('any HTML'); | |||
}()); | }()); |