Replacing or Removing nodes
Let's remove or replace elements from the page via JavaScript.
We'll cover the following...
Replacing a node
A DOM element can be replaced with the replaceChild()
...
Let's remove or replace elements from the page via JavaScript.
A DOM element can be replaced with the replaceChild()
...