JavaScript Programmers and the Document Object Model (DOM)


show more What is the DOM? The Document Object Model allows JavaScript programmers to interact with the pieces of a web page, using an agreed-upon terminology. Find out more about the DOM and how to interact with elements such as headers, paragraph elements, lists, links, and more in this short JavaScript tutorial. show less
please wait ...

What is the DOM?

So we've been focused completely on the JavaScript language for these past few movies, and that is a great way to start with JavaScript. But of course it doesn't run in a vacuum. Our scripts will be attached to a web page, and it's the web page that comes first. They bring our script with them, not the other way around. So our page, whether a simple page or a complex one, is the canvas that we're painting on. It's the environment we're affecting. It is the world that we live in. And we must be able to reach from a JavaScript into these pages and cause these pages to reach back into our script.

We do that by understanding the DOM, the Document Object Model. I consider knowing your way around the DOM to be the single most important skill for a JavaScript programmer to develop. But this is a term that's often a little tough to understand the first time you hear it, because it's kind of vague. People ask well, what is the DOM? Is it a language, is it part of Jav...

What is the DOM?
Video duration: 5m 49s 5h 31m Beginner

Viewers:

What is the DOM? The Document Object Model allows JavaScript programmers to interact with the pieces of a web page, using an agreed-upon terminology. Find out more about the DOM and how to interact with elements such as headers, paragraph elements, lists, links, and more in this short JavaScript tutorial.

Subjects:
Developer Web
Software:
JavaScript
Author:
please wait ...