From the course: Vanilla JavaScript: Building on the Document Object Model (DOM)
Unlock the full course today
Join today to access over 24,800 courses taught by industry experts.
DOM-specific maps and lists
From the course: Vanilla JavaScript: Building on the Document Object Model (DOM)
DOM-specific maps and lists
- [Instructor] One of the more frustrating aspects of working directly with the DOM is the use of some DOM-specific collections for certain Node properties within the DOM tree. So to illustrate that, we're going to build a little application today. So let's show you my development environment that I've set up here. Is pretty simple, I'm running the built-in Python web server. So I'm just going to the project folder and running python-m http.server. So if you're running Python 3+, then this should work fine. And I've got my text editor with my code loaded up here, and I'm running Chrome to view my web page. So as you can see, here's the webpage, I've gone ahead and created this basic webpage that has JavaScript file being loaded and it's executing my DOMcontentLoaded event handler. So the DOMcontentLoaded event handler is called as soon as your page is parsed and the DOM tree is built, but all the external resources…