How Do I Replace/Change The Heading Text Inside <h1></h1>, Using Javascript?

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>

49 thoughts on “How Do I Replace/Change The Heading Text Inside <h1></h1>, Using Javascript?”

Leave a Comment