Using innerHTML
innerHTML
is a read/write property of a DOM element that gets/sets the HTML
contained in the element.
innerHTML
is a read/write property of a DOM element that gets/sets the HTML
contained in the element.
Once you have access to an element, you can manipulate it using assignment of object properties or DOM methods.
Today I'm going to talk about the DOM. Things you might not know, tricks, nuances and some best practices (I think). So, let's get to it.