Skip to content

Instantly share code, notes, and snippets.

@ashishnegi
Last active August 29, 2015 14:04
Show Gist options
  • Save ashishnegi/f9368b4002665b095090 to your computer and use it in GitHub Desktop.
Save ashishnegi/f9368b4002665b095090 to your computer and use it in GitHub Desktop.
Script should come after the DOM simply ...
<html>
<head></head>
<body>
<script>
document.getElementById("my-fancy").innerHTML = "Hello world !!!"
</script>
<div id="my-fancy">
</div>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment