Example of the use of innerHTML

Example of how to use innerHTML to display a result.

by scsswil

HTML

<div id="example"></div>

JavaScript

document.getElementById("example").innerHTML = "Hello world!!!";