title: Refreshing only one <div> in page with just regular Javascript
body: <p>If I am not grabbing any information from the server but I want to reload/refresh a div every N seconds how do I do this?</p>
  
  <p>New to javascript: I've tried something like</p>
  
  <pre><code> &lt;script type = 'text/javascript'&gt;
      function refresh(){
          setTimeout(window.location.reload(), 10000);
      }
  
      &lt;/script&gt;
  
      &lt;div id='target' onLoad='refresh()'&gt;
  &lt;?    
  var =grab some rapidly changing content from the web    
  print var
    ?&gt;  
      &lt;/div&gt;
      &lt;div&gt;
      some stuff that doesn't get refreshed
      &lt;/div&gt;
  </code></pre>
  
  <p>Its not clear to me that I need AJAX if im not getting the new info from the server...so for now i'd like to know how to make it work just in javascript</p>
  
  <p>EDIT: I prefer not to use a library for this basic operation so ideally I wouldn't use jquery, prototype etc.
  EDIT II: Not sure why people are saying the div isnt changing...the content in it is dynamic it is grabbed (say scraped) from the web...and everytime it goes to grab stuff the stuff has changed at the source...an example could be grabbing search results from twitter which change very rapidly...</p>