document.write(''); document.write(''); //Lade Inframe nachdem die Seite geladen ist window.onload = function () { var xhttp = new XMLHttpRequest(); xhttp.onreadystatechange = function() { //if (xhttp.readyState == 4) alert(xhttp.status); if (xhttp.readyState == 4 && xhttp.status == 200) { //alert(xhttp.responseText); document.getElementById("lBoerse").innerHTML = xhttp.responseText; start(); } }; xhttp.open("GET", 'https://api.lb-portal.de/rechner.php?code=', true); //xhttp.setRequestHeader('Access-Control-Allow-Origin','*'); xhttp.send(); }