title: what is the proper way to auto call function in Javascript after an interval of time?
body: <p>I need to call a function after one minute and update the <code>div</code>.</p>
  
  <p>Basically I need to refresh the page as the new entry comes in the table, so what I think is to Ajax call and update the content after one minute. Please tell me whether this is right approach? </p>