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
Use
document.write(document.location.hostname)
window.location has a bunch of properties. See here for a list of them.
window.location