home hardware prices news articles forums photos user reviews
Go Back   Tech Support Forums - TechIMO.com > PC Hardware and Tech > Webmastering and Programming
Ask a Tech Support Question (free)!

Automatic Redirecting...how?

Reply
Get bargains at  »  Dealighted.com
 
Thread Tools Search this Thread
Currently Active Users: 2647
Discussions: 200,970, Posts: 2,379,725, Members: 246,335
Old November 11th, 2004, 11:53 AM   Digg it!   #1 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Wayzata, MN
Posts: 756
Send a message via AIM to Cook_1
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
Cook_1 is offline   Reply With Quote
Old November 11th, 2004, 12:12 PM     #2 (permalink)
Ultimate Member
 
embj's Avatar
 
Join Date: Dec 2002
Location: Fayetteville, NC
Posts: 1,385
Send a message via AIM to embj Send a message via MSN to embj Send a message via Yahoo to embj
It's fairly simple. Just use a bit of javascript:

Code:
<script language=javascript><!--
top.location.replace("http://www.my_domain.com/");
//-->
</script>
embj is offline   Reply With Quote
Old November 11th, 2004, 12:18 PM     #3 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Wayzata, MN
Posts: 756
Send a message via AIM to Cook_1
Excellent, thanks!

Oh and where do you usually place this tag?

After the opening html tag?
Cook_1 is offline   Reply With Quote
Old November 11th, 2004, 12:20 PM     #4 (permalink)
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">
DVNT1 is offline   Reply With Quote
Old November 11th, 2004, 12:31 PM     #5 (permalink)
Ultimate Member
 
embj's Avatar
 
Join Date: Dec 2002
Location: Fayetteville, NC
Posts: 1,385
Send a message via AIM to embj Send a message via MSN to embj Send a message via Yahoo to embj
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.
embj is offline   Reply With Quote
Old November 11th, 2004, 12:33 PM     #6 (permalink)
Senior Member
 
Join Date: Jun 2004
Location: Wayzata, MN
Posts: 756
Send a message via AIM to Cook_1
Excellent, much apprieated embj for all your help, and DVNT1, thank you as well.
Cook_1 is offline   Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread Starter Forum Replies Last Post
Windows Sp 2, Will Not Download xfrankyx Technical Support 7 September 11th, 2004 04:23 AM
MS Updates The Real Bingo Security and Privacy Issues 5 June 10th, 2004 03:56 AM
Own(ed) a handgun? Warthog IMO Community 118 October 21st, 2002 06:31 PM
Old classic car question daveleau IMO Community 27 July 31st, 2002 12:51 AM
Win XP Pro logs it's self on to the internet Ash Applications and Operating Systems 6 April 7th, 2002 06:19 PM


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Most Active Discussions
Is It Just Me? (3040)
Delete an OS (14)
Breaking: San Diego ACORN Document .. (8)
Forty-six years ago today (12)
Nvidia GTX 260 problem (6)
Laptop with wireless problem. (12)
Wireless Televisions. (12)
CPU fan stops spinning randomly (11)
Regular Build (11)
windows vista security holes (17)
Internet Lost (5)
windows 7 problem (7)
Is the PSU I received dead? (13)
Point and Shoot Camera Suggestions. (6)
Recent Discussions
Steam ID's, Gamertags etc... (4)
Delete an OS (14)
Nvidia GTX 260 problem (6)
Games, Cables, PCI cards, and more fo.. (6)
Dept. of HS: NSA 'Helped' Develop Vis.. (17)
Linksys WMP54GS wireless card problem.. (5)
windows vista security holes (17)
Help getting around port 80 for camer.. (5)
Skillsoft Network+ Study Software Que.. (10)
Browsers wont load websites (3)
help me pls laptop just stopped worki.. (0)
Open With ..... Win7 (3)
Laptop with wireless problem. (12)
Internet Lost (5)
virus blocking exe. files (1)
Point and Shoot Camera Suggestions. (6)
CPU fan stops spinning randomly (11)
Modern Warfare 2: Who Bought It? (65)
Is the PSU I received dead? (13)
Print spooler problem (16)
Kingston Bluetooth Dongle Driver (1)
Multiple Restarts Required at Boot (3)
webcam (0)
upgrade for hp a6101 (0)
tv not turn on-makes clicking sound (2)


All times are GMT -4. The time now is 06:49 PM.
TechIMO Copyright 2009 All Enthusiast, Inc.



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28