Understanding innerHTML in Javascriptby@smpnjn
442

Understanding innerHTML in Javascript

tldt arrow
Read on Terminal Reader🖨️

In Javascript, we have lots of different ways to manipulate DOM elements. DOM elements are the HTML elements we define when we write our scripts. Once we are targetting a particular DOM element, it's often useful to set its contents with new HTML content or to retrieve its HTML content for use somewhere else. To do this, we use `innerHTML`. All Javascript DOM-type elements have an`inner HTML` property attached.
featured image - Understanding innerHTML in Javascript
Johnny Simpson HackerNoon profile picture

@smpnjn

Johnny Simpson

undefined @smpnjn
LEARN MORE ABOUT @SMPNJN'S EXPERTISE AND PLACE ON THE INTERNET.
react to story with heart

L O A D I N G
. . . comments & more!
Hackernoon hq - po box 2206, edwards, colorado 81632, usa