Template: WhatLinksHere: Difference between revisions
From ASDSO Dam Safety Toolbox
No edit summary |
No edit summary |
||
Line 34: | Line 34: | ||
content.body.getElementsByTagName("footer")[0].style.display = "none"; | content.body.getElementsByTagName("footer")[0].style.display = "none"; | ||
// Add parent to links | // Add parent to links | ||
var | var anchors = iframeWin.contentWindow.document.getElementById('mw-content-text').getElementsByTagName("a"); | ||
for (var i=0; i<anchors.length; i++){ | for (var i=0; i<anchors.length; i++){ | ||
anchors[i].setAttribute('target', '_parent'); | anchors[i].setAttribute('target', '_parent'); |
Revision as of 18:42, 10 July 2023
Usage