Posts

acha ji

Image
This is a sum up of every previous answers plus an additional solution using HTTP Refresh Header via .htaccess 1. HTTP Refresh Header First of all, you can use .htaccess to set a refresh header like this Header set Refresh "3" This is the "static" equivalent of using the  header()  function in  PHP header("refresh: 3;"); Note that this solution is not supported by every browser. 2. JavaScript/jQuery With an alternate  URL : <script> setTimeout ( function (){ location . href = "http://example.com/alternate_url.html" } , 3000 ); </script> Without an alternate URL: <script> setTimeout ( "location.reload(true);" , timeoutPeriod ); </script> Via jQuery: <script> window . location . reload ( true ); </script> 3. Meta Refresh You can use meta refresh when dependencies on JavaScript and redirect headers are unwanted With an alternate URL: <meta htt