title: Dynamically update a html element value based on h1
body: <p>Right, I have a problem which I am struggling to get my head around.</p>
  
  <p>On an aspx master page (procedure.master.aspx) I have the following element:</p>
  
  <pre><code>&lt;Tags&gt;
      &lt;wbc:Tag Value="234"&gt;&lt;/wbc:Tag&gt;
  &lt;/Tags&gt;
  </code></pre>
  
  <p>what I want to be able to do is change the <strong>VALUE</strong> of this depending on the page content (procedures.aspx which calls the master) i.e. if <code>H1</code> contains <code>"FOO"</code> then Tag <code>Value="BAR"</code> etc.</p>
  
  <p>The TAG value is sent to a stored procedure returning XML based on the content of the page.</p>
  
  <p>Not a javascript GURU so open to any suggestions with Javascript (not JQuery) or VB.net.</p>