title: How to replace a specific href link using Javascript?
body: <p>I'll try again with this as I'm not sure the last time I put a very clear question... I have a page that has a lot of linked images. I would like to change just one of the image links (it's the logo) using javascript. I can not directly edit the "body" html, but can put js in the "head" region.</p>
  
  <p>Here is the html code:</p>
  
  <pre><code>&lt;div id="ctl00"&gt;
    &lt;h1 class="logo"&gt;
    &lt;a href="http://www.store.domain.co.nz" title="Menswear"&gt;&lt;img src="/user/files/logo.png title="Menswear" alt="Menswear"&gt;&lt;/a&gt;
    &lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>and I want to change the html to:</p>
  
  <pre><code>&lt;div id="ctl00"&gt;
      &lt;h1 class="logo"&gt;
  &lt;a href="http://www.domain.co.nz" title="Menswear"&gt;&lt;img src="/user/files/logo.png title="Menswear" alt="Menswear"&gt;&lt;/a&gt;
  &lt;/h1&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>Basically I want to remove the ".store" from the URL, but only this instance, not all URLs on the page.</p>