Skip to content

Instantly share code, notes, and snippets.

@notriddle
Last active October 26, 2016 23:38
Show Gist options
  • Save notriddle/dc71fb8609c8ef495db0bde21309529d to your computer and use it in GitHub Desktop.
Save notriddle/dc71fb8609c8ef495db0bde21309529d to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<h1>Hi!</h1>
<script>
var body2 = document.createElement("body");
body2.innerHTML = "<h1>Bye!</h1>";
document.getElementsByTagName("html")[0].appendChild(body2);
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment