How to change HTML content with JavaScript

1 Answer

0 votes
<p id="id-p">HTML content</p>

<button type="button" onclick="document.getElementById('id-p').innerHTML = 'JavaScript'">
    Click</button>

 



answered Aug 28, 2016 by avibootz
...