javascirpt replace html element content code example
Example: javascript replace text within dom
document.body.innerHTML = document.body.innerHTML.replace('hello', 'hi');
document.body.innerHTML = document.body.innerHTML.replace('hello', 'hi');