How to Auto Refresh page every 5 seconds using JavaScript?

Below is a sample code demonstrating how to refresh the page automatically every 5 seconds using JavaScript.

How to Auto Refresh page every 5 seconds using JavaScript?

<body onload="javascript:setTimeout("location.reload(true);",5000);">
%d bloggers like this: