Replace text inside html tag (not between) using JavaScript
<p>I see a lot of reference for replacing text between tags or replacing tags identified with an ID, but my task is quite different in that I need to replace part of the tag itself. For example, I want to change...</p>

<pre><code>&lt;body etc&gt;
</code></pre>

<p>So that it becomes...</p>

<pre><code>&lt;body somestring etc&gt;
</code></pre>

<p>The change needs to be performed in the browser using JavaScript, ie: after a CMS (like Wordpress) has finished with it. </p>
