Javascript replace td background url (without css or style)
<p>Hi I have a website template I can't change since it's server side of a company I'm partnered with, but I want to change this code to remove onload this td background image or change it, whatever works. It needs to be with javascript not jquery.</p>

<p>It has no id or css</p>

<pre><code>&lt;td background="/webfiles/302565/free/b2.gif"&gt;
</code></pre>

<p>I tried something like this but it doesn't work.</p>

<pre><code>var tabletd = document.getElementsByTagName('td');

if (td.background == 'b2.gif') {
    td.background = 'b-2.gif';
   }
</code></pre>

<p>A million thank you's in advance!</p>

<p>*EDIT: Thanks for the help and code, however although it works in jsfiddle it doesn't work on my site (www.skiptheframe.tk). I have other working replace scripts but this td background one has been a thorn in my side for ages since I have tried many variations to try get it to work. </p>