Archive
Categories
- Antivirus (4)
- Applications (5)
- Books and Articles (24)
- Computer Tutorials (10)
- Flash (3)
- Game (4)
- Graphic Design Tutorials (13)
- Internet Software (5)
- Internet Tutorials (12)
- Movie (8)
- Music (4)
- Novel Collections (5)
- Photoshop (10)
- Programming Tutorials (12)
- Template (3)
Tutorial : How to Redirect to Other Page URL
8:58 PM |
Diposkan oleh
Fiola |
Edit Post
Redirect to another page means to open another page (the other url) immediately or within a certain time when opening a webpage. We can do it either with HTML codes only or using Javascript. Redirect is usually used when your web site or specific pages has been moved to another page or website. Therefore, by using redirect the visitor when opening page will be instantly moved to the intended page. The trick as follows:
Use the following codes, can be placed between <HEAD> and </HEAD> tag in your HTML code.
<META HTTP-EQUIV="REFRESH" CONTENT="0; URL='http://www.shoutwhisper.com'"> |
HTML codes above will redirect to another page immediately. The code CONTENT="0; above states time interval (in seconds) prior to perform redirect. While URL points to address of the web page will be opened (redirect). Change the URL with your target URL.
Second Way
Another way to redirect is by using Javascript. The code below is placed inside the tags <BODY. It will be like this:
<BODY ONLOAD="Javascript:window.location.href=' http://www.shoutwhisper.com'"> |
Just change the URL with your target URL.
Or you can also use the following codes, they can be placed anywhere within your HTML code.
<script language="javascript"> window.location.href="http://www.shoutwhisper.com"; </script> |
Label:
Internet Tutorials,
Tutorial
Subscribe to:
Post Comments (Atom)
0 komentar:
Post a Comment