Java Reference
In-Depth Information
Figure 6.9. Replacing an element
innerHTML
The
innerHTML
node property is not part of the DOM standard, but it's supported by all
the major browsers. It returns all the child elements of an element as a string of HTML. If
an element contains lots of other elements, all of the raw HTML is returned. In the follow-
