MediaWiki:Common.js: Difference between revisions
Content deleted Content added
No edit summary |
No edit summary |
||
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. */ |
||
/* Suppresses the title text on any page using {{ |
/* Suppresses the title text on any page using {{suppress}} template. */ |
||
var containsSuppression = document.getElementById("suppression"); |
var containsSuppression = document.getElementById("suppression"); |
Revision as of 15:17, 7 November 2007
/* Any JavaScript here will be loaded for all users on every page load. */
/* Suppresses the title text on any page using {{suppress}} template. */
var containsSuppression = document.getElementById("suppression");
if (containsSuppression) {
alert("!");
var documentH1 = document.getElementsByTagName("h1");
var titleElement = documentH1[0];
titleElement.innerText = "";
}