473,880 Members | 1,968 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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

9 New Member
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 3313
arunkumar2006
9 New Member
please reply someone.
Aug 8 '07 #2
drhowarddrfine
7,435 Recognized Expert Expert
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
arunkumar2006
9 New Member
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 Recognized Expert Expert
Ah, yes, the third way. Javascript.
Aug 9 '07 #5
bhosalevivek
3 New Member
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.co m/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 Recognized Expert Expert
Very good. I had forgotten all about that.
Aug 9 '07 #7
inspireuk
12 New Member
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/javascriptredir ect.php
Aug 9 '07 #8

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

Similar topics

8
3298
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. However when I start this process (by submitting form data) even when I comment out the processing code, the address bar shows the desired page, but the page never appears and the flag keeps spinning indefinitely (and doesn't stop even after 15...
1
4772
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 be redirected to "update.htm". I'm not bothered what the referring webpage was, I'm just interested in anyone accessing my page from a certain domain
1
4345
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 (response.redirect "page1.aspx). But in a webpage I have an IFRAME and I want only to change the contents of that IFRAME. In a previous question Cliff proposed the following on the static part: <a href="newIframepage.aspx?par1=something"...
2
2842
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 form to be display in the main window, not the side panel. Is there a way to do this?
9
1992
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" straight the "response.redirect" command? I know about server.transfer BTW, I just want to know what happens in this instance... Many thanks!
1
1145
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 the results and displays as "Search Result returned within 0.041 seconds". I want to know how we can calculate the time. Give me a reply as soon as possible. If u know the code send to me. thanks in advance
9
1838
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 missing page. Most visitors don't describe the link or the page they came from (containing the dead link) so I really would like to prefill their email with the URL of the page that seems to be missing. All ideas are welcome...
56
7267
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 website. The issue is that I need to gauge whether a user has any items in their basket to decide which page I redirect them too. I could
2
2329
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 form uploads to a database (the following code does this) 2. An e-mail is sent to my sales team as well as the customer, which contains the form values . 3. I want the user to then be directed automatically to another webpage, after they hit the...
0
9926
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9774
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
11093
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10811
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10396
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7951
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5973
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4596
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4192
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.