I plan on buying two domain names for the same site. Depending on which domain is used I plan on providing slightly different data on the page. Is there a way for me to de
I'm new to JavaScript, but cant you just use: document.domain ?
Example:
Output:
domain.com
or
www.domain.com
Depending on what you use on your website.