Next we take that element (that is, the element with the id “code9”) and we use its
innerHTML property to get its content, which we assign to the variable
- 6. Interacting with Your Web Page: Getting to know the DOM
- Publisher: O'Reilly Media, Inc.
- Released: March 2014
how to use the property innerHTML to get the HTML content of an element?