title: Access innerHTML of an anchor tag
body: <p>I'm having trouble accessing some innerHTML that I need to use as a title for a menu bar:
  See the attached image for details...</p>
  
  <p>The title "AMRIS" is what I need to store to a javascript variable as a string. </p>
  
  <p>I will later be using the following code to fill a Bootstrap menu with the title I grab:</p>
  
  <pre><code>echo '&lt;script type="text/javascript"&gt;
  
  var subTitle = document.getElementById("mobMenuTitle2");
  
  //This is currently filling the Sub Menu with a title// 
  subTitle.innerHTML = "Sub Test"; 
  
  &lt;/script&gt;';
  </code></pre>
  
  <p><strong>RIGHT-CLICK > OPEN IMAGE IN NEW TAB TO SEE FULL SIZE</strong></p>
  
  <p><img src="https://i.stack.imgur.com/IPvW1.png" alt="enter image description here"></p>