const xhttp = new XMLHttpRequest(); xhttp.onload = function() { document.getElementById("registration_info").innerHTML = this.responseText; } xhttp.open("GET", "https://lamanna.io/widget.php?sport=kickball", true); xhttp.send();