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.