Search Results
There are 1 item(s) tagged with the keyword "DOM".
- Displaying: 1 - 1 of 1
- 1. innerHTML vs appendChild
Today I was testing my code, and I found interesting stuff on innerHTML and appendChild method.
I was trying to add new elements to the div.
First, I was creating element by calling DOM method (document.createElement()) and then I append it to my div by calling appendChild() method of the HTML div element.
- By Vikas
- Displaying: 1 - 1 of 1