Skip to content

Instantly share code, notes, and snippets.

@zoutepopcorn
Last active July 1, 2019 10:45
Show Gist options
  • Save zoutepopcorn/bd5dbfad0cd4f48ae045d0b1b032e1e0 to your computer and use it in GitHub Desktop.
Save zoutepopcorn/bd5dbfad0cd4f48ae045d0b1b032e1e0 to your computer and use it in GitHub Desktop.
<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