H I O X INDIA
FREE ADVANCE HTML Tutorial
 HOME  ||  Scripts  ||  Purchase  ||  Tutorials  ||  Images  ||  Tools  ||  Templates 
  :-)  Send Page   :-)   Feedback   :-)   Register   :-)   Links   :-)   Support   :-)
Español Français 中文 Deutsch Portuguese Japanese தமிழ்
 Forums   Hosting   Internet Stats   Easy Calculation   FUN Games 

HTML Basic
Introduction
How To
HTML Tags
html, head, body
Text Manipulation
IMAGES
Special Effects
Using Tables
Forms
Other Topics



ADVANCED HTML
Introduction
Media
Meta Tag
Frame tags
Fieldset
Tooltip
DTD
Image tags
Subscript & Superscript
Bullet styles
Canvas
Other tags
Ask Your Doubts
More about HTML
Feedback





Web Page Auto Redirection


Topic

I want to auto redirect web pages after some time interval?
Html Tag or Code for redirection of a web page to another?



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.

This will work on all pages with any extension or server side language (php, jsp, asp, etc...).




privacy policy     license     sitemap
© 2004-2010 HIOX INDIA

Other Links