The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript Help w/ Running Multiple Javascripts Reply To: Help w/ Running Multiple Javascripts


DOMContentLoaded aside for now, and going back to my previous post, have you tried putting the script above the closing body element? So that the markup comes first (as per the tutorial). It worked when I tried it the other day.

document.addEventListener('DOMContentLoaded', function () {
/* your script here */

You can use your developer console (F12) to check for JS errors then hit up Google to find then and learn more about event listeners.