I have a single webpage that is shared on 9 different domains. I want the page to auto detect the URL that is being used to change the phone number on the page. Example:
I own website1.com, website2.com, etc…
I have 9 different phone numbers that I want displayed for each website. How do I code it in java script to detect the URL and change the phone number? I can program out the function no problem just having trouble with the document.location / location.hostname type of script to detect the url and leave room for say i dont know if the page will be in the root OR in a folder. EX: website1.com/index.htm or website1.com/test/index.htm????
I have a single webpage that is shared on 9 different domains. I want
Share
or
if you do a console.debug to top.location, you will find a lot of useful information