Last active
July 1, 2019 10:45
-
-
Save zoutepopcorn/bd5dbfad0cd4f48ae045d0b1b032e1e0 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<html> | |
<title>title</title> | |
<body> | |
<div id="mijnFooter"></div> | |
<script> | |
document.body.innerHTML += '<div>div inject</div>'; | |
fetch('http://127.0.0.1:35741/footer.html') | |
.then(function(response) { | |
return response.text(); | |
}) | |
.then(function(response) { | |
console.log(response); | |
document.getElementById("mijnFooter").innerHTML += response; | |
}); | |
</script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment