Web Page Auto Redirection


Explanation


To make a page redirect itself we have to use the HTML Meta Tag inside the head tag

Example:
<meta http-equiv="refresh" content="5; url=http://www.hscripts.com">
This code will redirect your webpage to the url http://www.hscripts.com after 5 seconds.

The attribute http-equiv="refresh" calls for refresh of the page.

The attribute content="5; URL=http://www.hscripts.com" sets the time interval in seconds after which the page redirection will take place and the destination page.

Make sure you follow the exact order of coding.
i.e: content="time interval in seconds; URL=resulting page";
Note that you should not use semicolon after 'url='.

So using this meta tag will redirect the page to the destination page after the time interval. To make the page to redirect to a pre-defined page edit the attribute "content" and set proper values of time and destination url as required.

Comments

Popular Posts