Difference between revisions of "MediaWiki:Common.js"
Jump to navigation
Jump to search
Line 5: | Line 5: | ||
function addNavigation() | function addNavigation() | ||
{ | { | ||
− | + | ||
var text = document.createTextNode(' navigators'); | var text = document.createTextNode(' navigators'); | ||
var child = document.getElementById('mw-normal-catlinks'); | var child = document.getElementById('mw-normal-catlinks'); | ||
− | child.insertBefore(text, child); | + | child.parentNode.insertBefore(text, child); |
} | } |
Revision as of 07:41, 17 May 2014
/* Any JavaScript here will be loaded for all users on every page load. */ window.onload=addNavigation; function addNavigation() { var text = document.createTextNode(' navigators'); var child = document.getElementById('mw-normal-catlinks'); child.parentNode.insertBefore(text, child); }