1. 4
    Add a Node to Your HTML with document.appendChild
    3m 38s

Add a Node to Your HTML with document.appendChild

Ian Jones
InstructorIan Jones

Share this video with your friends

Send Tweet

This lesson goes over how to create an HTML element and add it to our document. We do this by creating an element with document.createElement. Once we have the element created, we can use document.appendChild to add our element to our HTML.

We then go over how to connect our JavaScript to a button's onclick event.

h2m2
h2m2
~ 7 months ago

innerText is causing a page re- layout. textContent not.

In general , well done. I like it.