MediaWiki:Common.js: Difference between revisions
Appearance
Created page with "→Any JavaScript here will be loaded for all users on every page load.: <script type="text/javascript"> document.write('I wrote something!!!'); </script>" |
No edit summary |
||
| Line 4: | Line 4: | ||
document.write('I wrote something!!!'); | document.write('I wrote something!!!'); | ||
</script> | </script> | ||
$(function () { | |||
var myElement = document.getElementById('mw-mywiki-example'); | |||
myElement.innerHTML = 'any HTML'; | |||
}()); | |||
Revision as of 16:51, 11 February 2022
/* Any JavaScript here will be loaded for all users on every page load. */
<script type="text/javascript">
document.write('I wrote something!!!');
</script>
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
myElement.innerHTML = 'any HTML';
}());