Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
<html>
<head>
<script type="text/javascript" src="zeroth.js"></script>
</head>
<body>
<script>
console.log("First script");
</script>
<script>
var s = document.createElement("script");
s.type = "text/javascript";
s.appendChild( document.createTextNode('console.log("Middle script");') );
document.getElementsByTagName("body")[0].appendChild(s);
</script>
<script>
console.log("Second script");
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment