I have an html file whos body looks like this:
<body>
<header>
<h1></h1>
</header>
<main>
<div id="menu">
<div>
<div></div>
<div></div>
<div></div>
</div>
</div>
</main>
<footer>
<p></p>
</footer>
<script src="js/script.js"></script>
</body>
the linked js file has this near the beginning:
var received = document.getElementById("menu");
the script is included at the bottom of the page and ive even tried windows onload, but no matter what, the javascript debugger shows "received" being null after attempting to get the element.
This looks like a repost but from what I can tell, I already formatted it correctly and implemented most popular fixes before looking for help.