Auto Refresh after some time

Hello Friend

I need help to refresh my all page like facebook home page.

How can i do it without effecting other things.

  1. Set up a function that performs whatever updates that you want performed at regular intervals.

  2. Do a setInterval call passing the function name as the first parameter and the amount of time between the refreshes you want the function to perform (in milliseconds) as the second parameter.