Difference between revisions of "MediaWiki:Common.js"

From AlHaq
Jump to navigation Jump to search
 
Line 1: Line 1:
 
/* Any JavaScript here will be loaded for all users on every page load. */
 
/* Any JavaScript here will be loaded for all users on every page load. */
 +
 +
window.onload=addNavigation;
 +
 +
function addNavigation()
 +
{
 
alert("test");
 
alert("test");
 +
var text = document.createTextNode(' navigators');
 +
var child = document.getElementById('mw-normal-catlinks');
 +
child.insertBefore(text, child);
 +
}

Revision as of 07:39, 17 May 2014

/* Any JavaScript here will be loaded for all users on every page load. */

window.onload=addNavigation;

function addNavigation()
{
alert("test");
var text = document.createTextNode(' navigators');
var child = document.getElementById('mw-normal-catlinks');
child.insertBefore(text, child);
}