Refresh / Redirection

When you need your web page automatic refresh in 5 second or any second, use this meta tag.  It’s a simple code, put it between HEAD tag in your web page. This script easy but powerful.

<HEAD>
<meta http-equiv='refresh' content='2;url='file_name or URL'>
</HEAD>
// content = time (second)
// file_name = name of file you want to refresh or redirect

Many websites use this scripts to redirect to another page or refresh the same page.

For example:  My website updates in every 10 minutes and I want to show user my latest content then I put this script to my page and set it refreshs in every 10 minutes

Permanent link to this article: https://blog.openshell.in/2010/11/refresh-redirection/

Leave a Reply

Your email address will not be published.