MediaWiki:Common.js: Difference between revisions
Appearance
No edit summary |
No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 5: | Line 5: | ||
</script> | </script> | ||
/* | |||
$(function () { | |||
var myElement = document.getElementById('mw-mywiki-example'); | |||
myElement.innerHTML = 'any HTML right here is text for it...'; | |||
}()); | |||
*/ | |||
$(function () { | $(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');
}());