+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Senior Member
    Join Date
    Jun 2004
    Location
    Wayzata, MN
    Posts
    756

    Automatic Redirecting...how?

     
    Hey guys, had a Q for ya. How do you do an auto redirect to a "new" site? I'm what you'd call a newbie at HTML coding, I can make an entire site with frames or tables or what not with notepad. I can do a "click here to redirect" link (not too difficult I know), but I was wondering how to do those automatic redirects.

    Thanks

  2. #2
    Ultimate Member embj's Avatar
    Join Date
    Dec 2002
    Location
    Fayetteville, NC
    Posts
    1,385
    It's fairly simple. Just use a bit of javascript:

    Code:
    <script language=javascript><!--
    top.location.replace("http://www.my_domain.com/");
    //-->
    </script>

  3. #3
    Senior Member
    Join Date
    Jun 2004
    Location
    Wayzata, MN
    Posts
    756
    Excellent, thanks!

    Oh and where do you usually place this tag?

    After the opening html tag?

  4. #4
    addicted DVNT1's Avatar
    Join Date
    Oct 2001
    Location
    Ohio
    Posts
    6,103
    This example would redirect you to TechIMO in about 8 seconds
    Code:
    <HTML><META HTTP-EQUIV="Refresh" CONTENT="8; URL=http://www.TechIMO.com">

  5. #5
    Ultimate Member embj's Avatar
    Join Date
    Dec 2002
    Location
    Fayetteville, NC
    Posts
    1,385
    You can use either or...but, I don't recommed the meta refresh tag unless you don't want search engines to index it. If you decide to use the meta redirect instead of javascript, make sure that you don't set
    Code:
    CONTENT="x;
    to 0 (seconds before it redirects to another page) as that will cause problems with Google.

    If you want to use the javascript tags, you should put it inside of your <html></html> tags.

  6. #6
    Senior Member
    Join Date
    Jun 2004
    Location
    Wayzata, MN
    Posts
    756
    Excellent, much apprieated embj for all your help, and DVNT1, thank you as well.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Windows Sp 2, Will Not Download
    By xfrankyx in forum Technical Support
    Replies: 7
    Last Post: September 11th, 2004, 03:23 AM
  2. MS Updates
    By The Real Bingo in forum Security and Privacy Issues
    Replies: 5
    Last Post: June 10th, 2004, 02:56 AM
  3. Own(ed) a handgun?
    By Warthog in forum IMO Community
    Replies: 116
    Last Post: October 21st, 2002, 05:31 PM
  4. Old classic car question
    By daveleau in forum IMO Community
    Replies: 27
    Last Post: July 30th, 2002, 11:51 PM
  5. Win XP Pro logs it's self on to the internet
    By Ash in forum Applications and Operating Systems
    Replies: 6
    Last Post: April 7th, 2002, 05:19 PM

Tags for this Thread

Posting Permissions

  • You may post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Recommended Sites: ResellerRatings Store Reviews