Javascript Reference
Categories: tips

Examples of refresh/reload current page

@May 17, 2009, 7:02 a.m.
Demo 1: Goto special page after 2 seconds:
<meta http-equiv="refresh" content="2; url=http://javascript.gakaa.com/" />

Demo 2: Refresh current page after 2 seconds:
<meta http-equiv="refresh" content="2" />

Demo 3: ASP server side:
Response.AddHeader "refresh", "1;URL=http://javascript.gakaa.com/"


Unfortunately <META> refresh has been considered as a bad action by Search Engine. Pages with meta-refresh are usually punished by SE.

Here is a SEO friendly refresh/reload solution:
<html>
<body>
<script type="text/javascript">setTimeout('location.reload()',2000);</script>
</body>
</html>

Or place codes in a file:
<script type="text/javascript" src="/yourfile.js"></script>

Or event wrap with document.write:
<script type="text/javascript">
document.write('<sc'+'ript ty'+'pe="text/jav'+'ascript" src="/yo'+'urfile.js"></scri'+'pt>');
</script>


buy lipitor online cheap <a href="https://lipiws.top/">where can i buy atorvastatin</a> order atorvastatin online cheap
Mkvxjo - 10 months
buy lipitor 10mg online <a href="https://lipiws.top/">atorvastatin 80mg pill</a> buy atorvastatin paypal
Vavgdi - 10 months

Powered by Linode.