chestertb
04-17-2004, 07:35 AM
Hi all,
First, let me apologise for asking this again... I had a solution, but stupidly trashed the folder it was in, and now can't find it on any of the dozen or so backups I keep.
I have a web hosting service that allows me to "park" a domain.
If a user types http://www.realdomain.com in his browser, he gets there. If he types http://www.someotherdomain.com he gets there too.
Javascript has a function that will read the domain name from the browser, allowing me to write a tiny script redirecting to a welcome page according to the domain name typed.
Does anyone know what that function is?
Thanks
CTB
First, let me apologise for asking this again... I had a solution, but stupidly trashed the folder it was in, and now can't find it on any of the dozen or so backups I keep.
I have a web hosting service that allows me to "park" a domain.
If a user types http://www.realdomain.com in his browser, he gets there. If he types http://www.someotherdomain.com he gets there too.
Javascript has a function that will read the domain name from the browser, allowing me to write a tiny script redirecting to a welcome page according to the domain name typed.
Does anyone know what that function is?
Thanks
CTB