Jump to content

MediaWiki:Common.js: Difference between revisions

From coloradoriverscience.org
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
 
(2 intermediate revisions by the same user not shown)
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 right here is text for it...';
}());
*/
$(function () {
$('#mw-mywiki-example').html('any HTML');
}());

Latest revision as of 16:58, 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...';
}());

*/

$(function () {
	$('#mw-mywiki-example').html('any HTML');
}());