Difference between revisions of "MediaWiki:LastPage.js"
From Tycoon Gaming
(Created page with "var path = window.location.href; var path1 = 'https://dash.tycoon.community/wiki/index.php/User:Donald' function iniFrame() { if ( window.location !== window.parent.location...") |
(No difference)
|
Revision as of 22:44, 10 October 2019
var path = window.location.href; var path1 = 'https://dash.tycoon.community/wiki/index.php/User:Donald' function iniFrame() { if ( window.location !== window.parent.location ) { var output; window.element = document.getElementById("globalWrapper"); var save = window.element.innerHTML; output = '<button class="LastPage" onclick="var oldURL = document.referrer; window.location.href = oldURL;">Return to Last Page</button>' window.element.innerHTML = save + output; } } iniFrame();