J
JavaDay
hi folks,
i'm a web designer who's just learning JS - wanted to know if there was a
function that could suss out which domain the page is residing on, and
assign a different variable string thus-wise.
my client has a simple one page site on 3 different domains, where the buy
now paypal button is directed to feed to 3 different shopping carts. it
would save me setting up 3 different local site def's if I could use one
site page that differentiated it's resident domain and inserted the shopping
cart link as a variable string, according to which domain it resided on. i
know php has a function to get IP address, not sure about JS.
thanks for any advice ...
Jed
i'm a web designer who's just learning JS - wanted to know if there was a
function that could suss out which domain the page is residing on, and
assign a different variable string thus-wise.
my client has a simple one page site on 3 different domains, where the buy
now paypal button is directed to feed to 3 different shopping carts. it
would save me setting up 3 different local site def's if I could use one
site page that differentiated it's resident domain and inserted the shopping
cart link as a variable string, according to which domain it resided on. i
know php has a function to get IP address, not sure about JS.
thanks for any advice ...
Jed