Friday, July 25, 2014

Make a HTML webpage redirect automatically

Many of us sometimes visit such webpages where a text is shown saying like 'You are going to be redirected to bla bla bla in some seconds' and really you are redirected to another website.
This is a clever work of HTML. But with being clever it is also pretty easy and fun-to-do.



Redirection is a really good way of redirecting your visitors without losing any traffic, it can also be used in such cases that you are moving your blog from one address to another so this code can be useful for you, you will just have to make an index.html page and paste the following code there and automatically your visitors will be redirected to the mentioned website. The code is:

<meta http-equiv="refresh" content="0; URL=http://www.thewebsa.ga/">

Some information about above code:

  • The place where 0 is written is the place where you will have to write the time in seconds, for example if you want to have that page redirected to your new website in 10 seconds, then you will write there 10.

  • The place where www.thewebsa.ga/ is written is the place where you'll have to write the web-address to which the page will redirect. For example if you want the web-page to redirect to www.makeuseof.com then you'll write there www.makeuseof.com


For beginners:

If you know little about designing HTML pages and you want to test this magic then there is a simple way for you:

  1. Open Notepad.

  2. Copy that code and paste there.

  3. Edit the code as you wish, edit the time and edit the web-address.

  4. Save the notepad document with the extension .html (for example, page.html, new.html, info.html etc...)

  5. Open the saved document with a browser like Mozilla Firefox and wait for the seconds you have edited in the document and see the magic.


For making your webpage more understandable:

You can then add other elements through your knowledge of HTML coding, here is an example. We made a slightly modern redirection page unlike the simple one only containing the redirection code, click here to view our redirection page. This redirection page will redirect you to our main site in 10 seconds. :)

 

About the Author

asd

Author & Editor

Hi there! I am a 16 years old boy living in Pakistan. My favorite passtimes include blogging, tweeting, and gobbling down my favorite dishes. Besides this, I also love to play table tennis. Want to ask me a question? You can do so by clicking here.

1 comments:

  1. […] more useful too than just writing texts, you can make simple .bat programs using and can easily compile HTML documents via […]

    ReplyDelete

 
The Web Saga © 2013-2015 Designed by Haroon Rasheed