Connecting Tech Pros Worldwide Forums | Help | Site Map

How to get the URL?

ASK
Guest
 
Posts: n/a
#1: Jul 20 '05
Hi,

I am new to Javascript.
I have registered 3 domain names (www.web-1.com , www.web-2.com and
www.web-3.com and all the 3 domain names points to same hosted
website. When someone browses my website using the URL
http://www.web-2.com then I want a welcome message as "Welcome to
web-2.com", when someone browses my website using the URL
http://www.web-3.com then I want a welcome message as "Welcome to
web-3.com".

How can I achive this because I will have to dynamically change the
welcome message? I am not interested in maintaining multiple pages.
Any solution?


ASK.

Michael Winter
Guest
 
Posts: n/a
#2: Jul 20 '05

re: How to get the URL?


On 15 Feb 2004 08:46:33 -0800, ASK <askrishnan@yahoo.com> wrote:

[snip]
[color=blue]
> How can I achive this because I will have to dynamically change the
> welcome message? I am not interested in maintaining multiple pages.
> Any solution?[/color]

It would be best to do this server-side. However, window.location.href (or
just window.location) will retreive what you want.

Mike

--
Michael Winter
M.Winter@blueyonder.co.invalid (replace ".invalid" with ".uk" to reply)
Closed Thread