O'Reilly logo
  • Ahmed Elgendy thinks this is interesting:

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 code.


Cover of Head First JavaScript Programming


how to use the property innerHTML to get the HTML content of an element?