title: How to refresh div in javascript, which has another script as body?
body: <p>I was using an advertising service (banner) which had a simple refresh timer in it. Where I could specify after what time the advert should be reloaded (or a new one should be served)</p>
  
  <p>I've switched my banner provider and the new one does not have that built in option. </p>
  
  <p>I've tried refreshing the div normally but that doesn't work since the content seems to remain the same. </p>
  
  <p>Any ideas on a javascript code which can refresh a banner ad?</p>
  
  <pre><code>&lt;script langauge="javascript"&gt;  
  window.setInterval("refreshDiv()", 60000);  
  function refreshDiv(){  
      document.getElementById("advert_div").innerHTML;
  }
  &lt;/script&gt;
  </code></pre>
  
  <p>and here is the advertisers div</p>
  
  <pre><code>&lt;div id="advert_div"&gt;
          &lt;script type="text/javascript"&gt;
              //&lt;![CDATA[
                  LSM_Slot({
                      adkey: '645451',
                      ad_size: '300x250',
                      slot: 'slot656464'
                  });
              //]]&gt;
          &lt;/script&gt;
      &lt;/div&gt;
  </code></pre>