title: I need an alternative to innerHtml
body: <p>This is my code. I'm trying to find an alternative to using innerHTML at the end. </p>
  
  <pre><code>function randomBanners()
  
  {
  
  var allBanners=new Array();
  
  allBanners[0]="&lt; src='' /&gt;";
  
  allBanners[1]="&lt; src='' /&gt;";
  
  allBanners[2]="&lt; src='' /&gt;";
  
  allBanners[3]="&lt; src='' /&gt;";
  
  var l =allBanners.length;
  
  var r=Math.random();
  
  var t=l * r;
  
  var i = Math.floor(t);
  
  document.getElementById("header").innerHTML = allBanners[i];
  </code></pre>