title: I need to use JavaScript to change mailto: href links to new email domains
body: <p>At work, we have a very old ASP.Net site and on our page that shows who to contact, there are a bunch of <code>&lt;a&gt;</code> tags with <code>mailto:</code> links on them for emails for the different departments. </p>
  
  <p>Since this site was built a long time ago, we don't want to try to open it in Visual Studio and go changing things for fear of messing something up, as the site still works very good for its purpose. It was written in Visual Studio .NET 2003 and we just don't want to chance it. We don't even own any copies of VS that old anymore. All our stuff now is written using Visual Studio 2013 and up. </p>
  
  <p>So with that being said, I noticed that when I did a view source on this particular page is linking to a JavaScript file called <code>clmenu.js</code> or something like that. So I thought I'd just open that JS file and add a little code at the top to change all the links to the new domain. So all the links on the page are like this</p>
  
  <pre><code>&lt;a href="mailto:whateverdepartment@olddomain.com"&gt;whateverdepartment@olddomain.com&lt;/a&gt;
  </code></pre>
  
  <p>and I need to change the links to this: </p>
  
  <pre><code>&lt;a href="mailto:whateverdepartment@newdomain.com"&gt;whateverdepartment@newdomain.com&lt;/a&gt; 
  </code></pre>
  
  <p>Is it possible using JavaScript to change just the @olddomain.com to @newdomain.com on all of these links? I have to use plain old JavaScript, not jQuery; as jQuery was not used on this site.</p>