View Full Version : Auto redirect to IP address site
biker
01-29-2003, 03:41 AM
Hi guys,
Can anyone tell me how to automatically redirect from one HTML site to another so I can use my ASP.NET web site?
I am looking for a simple HTML prog or simple script for redirecting. I have a hyperlink working but would prefer to use something automatic.
Any ideas please?
Web site address to redirect from is: -
http://www.btinternet.com/~playa.delingles
Cheers
:hotbounce :hotbounce :hotbounce
Biker
The Quinn
01-29-2003, 02:24 PM
Add this to your body tag
onLoad="location.href='http://217.39.32.58/apartment/index.aspx'"
ie
<body bgcolor="#94d6e7">
becomes
<body bgcolor="#94d6e7" onLoad="location.href='http://217.39.32.58/apartment/index.aspx'">
biker
01-29-2003, 02:40 PM
Great man! That really works.
I have put the code in and "yes" many thanks.
Another satisfied biker - lol.
Thank you "The Quinn" - presumably from Dallas?
:banana: :banana: :banana:
Complaint - there are no bikers on the smiley list! How do they make those things?
Cheers The Quinn!
I assume that the OnLoad command does not work if the browser has Javascript disabled.
An older method, but one that is frowned on by many, is to use a meta refresh command in the <head> section instead:
<meta http-equiv="refresh" content="3; url=index.html">
Whatever you do, you should always include a manual clickable link, just in case the automated system should fail.
biker
01-29-2003, 03:18 PM
Thanks for that,
As a belt and bracers job, can I use both?
The Quinn
01-29-2003, 06:31 PM
Originally posted by biker
"The Quinn" - presumably from Dallas?Northern Ireland actually :)
biker
01-30-2003, 04:38 PM
He he,
Biker wonders if there is a "Little Dallas" in Northern Ireland. lol
vBulletin® v3.6.7, Copyright ©2000-2009, Jelsoft Enterprises Ltd.