How do I change/replace the text: "Hello" using javascript to say "Goodbye" instead?
<h1 class="titlearea win-type-ellipsis" id="title">
<span class="pagetitle" >
Hello
</span>
</h1>
document.getElementsByClassName("pagetitle")[0].innerHTML = "Goodbye";
Here is a working fiddle.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With