Jump to content

MediaWiki:Common.js: Difference between revisions

From coloradoriverscience.org
No edit summary
No edit summary
Line 8: Line 8:
$(function () {
$(function () {
var myElement = document.getElementById('mw-mywiki-example');
var myElement = document.getElementById('mw-mywiki-example');
myElement.innerHTML = 'any HTML';
myElement.innerHTML = 'any HTML right here is text for it...';
}());
}());

Revision as of 16:56, 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 right here is text for it...';
}());