473,408 Members | 2,734 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

how to redirect a webpage to another webpage using html code??

i want to redirect visitors from my old website url to a new url coz my website has been moved. how i can do it using html code??
Aug 8 '07 #1
7 3290
please reply someone.
Aug 8 '07 #2
drhowarddrfine
7,435 Expert 4TB
The only two ways to do it is with a link inserted into your home page to your new site or with "redirect" on your server.
Aug 8 '07 #3
The only two ways to do it is with a link inserted into your home page to your new site or with "redirect" on your server.
but i have seen mny websites that redirect in 5 seconds to a new webpge. how they do it??
Aug 9 '07 #4
drhowarddrfine
7,435 Expert 4TB
Ah, yes, the third way. Javascript.
Aug 9 '07 #5
i want to redirect visitors from my old website url to a new url coz my website has been moved. how i can do it using html code??
<meta http-equiv="refresh" content="0;url=http://www.yoursite.com/yourpage.html">

add this tag in<head>.
and how much time you want to redirect with another page edit in "content" part, it's in second.
Aug 9 '07 #6
drhowarddrfine
7,435 Expert 4TB
Very good. I had forgotten all about that.
Aug 9 '07 #7
Javascript Time Delay

Expand|Select|Wrap|Line Numbers
  1. <html>
  2. <head>
  3. <script type="text/javascript">
  4. <!--
  5. function delayer(){
  6.     window.location = "../javascriptredirect.php"
  7. }
  8. //-->
  9. </script>
  10. </head>
  11. <body onLoad="setTimeout('delayer()', 5000)">
  12. <h2 >Prepare to be redirected!</h2>
  13. <p>This page is a time delay redirect, please update your bookmarks to our new 
  14. location!</p>
  15.  
  16. </body>
  17. </html>
Source: http://www.tizag.com/javascriptT/javascriptredirect.php
Aug 9 '07 #8

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Don Miller | last post by:
I have an ASP script that is called from a PDF form to process form data. On the last line of the script I have a Response.Redirect "webpage.asp" that leads to another target page with actual HTML....
1
by: Paul Lee | last post by:
Hi all, I'm trying to redirect users from a specific domain to one of my webpages. So, in my example, anyone accessing my index.html from the *btinternet.com domain (allowing for wildcards!) will...
1
by: Jac | last post by:
Aspx-problem : I want to write code (C-sharp) behind a button, that determines on some criteria which webpage an IFRAME has to show. To change a normal webpage you do a redirect in c-scharp...
2
by: Alan Scott | last post by:
I am using the following code to redirect users to another webpage when they click on an image: Response.Redirect("login.aspx"); The code works. However, I have frames setup and would like the...
9
by: postings | last post by:
Just a quick question... When I do a "response.redirect" from a source webpage to a destination webpage, does the code on the source webpage carry on executing unless I put a "response.end"...
1
by: sureshreddy | last post by:
hi friends, I want the time to be displayed for a webpage to redirect to another webpage. You can see this concept in job sites when we fill all the details and click the search button it displays...
9
by: M | last post by:
Hello all, We've got the following problem: When a visitor klicks a dead link he ends up on a 404-page like should be. On that page there's an opportunity to mail the webmaster (me) about the...
56
by: UKuser | last post by:
Hi, I'm not sure if this can be done as I've searched the web and this forum. I am using an online merchant provider and I must post certain variables to their webforms through a form on my...
2
by: sindhudixit | last post by:
Hey, I am having a user fill out a form then the fields are going to uploaded to my database. So, at this point, when the user hits the submit button I want three things to happen: 1. The...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.