Difference between revisions of "User:BelgianCat/common.js"
From Tycoon Gaming
BelgianCat (talk | contribs) (User JS enabled? test) |
BelgianCat (talk | contribs) m (testing alternative code (probably user JS and CSS disabled though lol)) |
||
Line 1: | Line 1: | ||
− | + | function iniFrame() { | |
− | function | + | var output; |
− | + | window.element = document.getElementById("globalWrapper"); | |
− | + | var save = window.element.innerHTML; | |
− | + | output = '<button class="LastPageTest" onclick="var oldURL = document.referrer; window.location.href = oldURL;"><b>Return to Last Page</b></button>'; | |
− | + | window.element.innerHTML = save + output; | |
− | |||
− | |||
− | |||
− | |||
− | |||
} | } | ||
− | + | iniFrame(); | |
− | |||
− |
Latest revision as of 21:04, 3 May 2023
function iniFrame() { var output; window.element = document.getElementById("globalWrapper"); var save = window.element.innerHTML; output = '<button class="LastPageTest" onclick="var oldURL = document.referrer; window.location.href = oldURL;"><b>Return to Last Page</b></button>'; window.element.innerHTML = save + output; } iniFrame();