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...")
 
Line 1: Line 1:
var path = window.location.href;
 
var path1 = 'https://dash.tycoon.community/wiki/index.php/User:Donald'
 
 
function iniFrame() {  
 
function iniFrame() {  
 
if ( window.location !== window.parent.location )  
 
if ( window.location !== window.parent.location )  

Revision as of 19:14, 12 October 2019

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();