Created
March 4, 2011 06:49
-
-
Save morganrallen/854277 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> | |
<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