title: How to replace a link text using JavaScript
body: <p>I have an HTML code and I want to replace something by JavaScript.</p>
  
  <pre><code>&lt;div class="maindiv"&gt;
      &lt;div class="childdiv"&gt;
          &lt;a href="www.abc.com" rel="prev"&gt;Old Text&lt;/a&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Now I want to change "Old Text" to another like "New Text".</p>
  
  <p>Please let me know if it is possible.</p>