Javascript: Replacing text in HTML object
<p>I've got a HTML object <code>obj</code> and I'm attempting to replace a string in it's inner HTML with another..</p>

<pre><code>obj.innerHTML.replace('&lt;a&gt;theoldstring&lt;/a&gt;&lt;span&gt;&lt;/span&gt;','thenewstring');
</code></pre>

<p>However, the string isn't replacing and is printing the same before and after.. why?</p>
