how to duplicate text from header to paragraph using javascript textContent code example Example: change innertext javascript element.innerText = "Hello World";