In this lesson we'll take a look at a basic example of DOM manipulation using JavaScript in the javascript
portion of this course will cover many more methods.
Here we have a basic HMO document inside the body tag.
We have a javascript function named change text.
This function will change any text contained within an element to the words new text
outside of our script we have an h1 tag with an on click event attached to it.
The on click event will execute the change TEXT function.
This means that the text inside the H1 element click here will change to the words new text as defined
in our function.
Let's take a look at this in our web browser to confirm it works.
You can see that when I click on the words click here it changes to new text.
And so we've manipulated the Document Object Model.