title: how to change value of html element by classname using javascript
body: <p>Here is the code i am using to change value of html element ***</p>
  
  <pre><code>&lt;a class="classname" href="Vtech.com"&gt; This text to be chnage&lt;/a&gt;
  </code></pre>
  
  <hr>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  document.getElementsByClassName("classname")[0].innerHTML = "aaaaaaqwerty";
  &lt;/script&gt;
  </code></pre>
  
  <p>how can I change this text on page load instans </p>