I have a website on a host example.myhost.com
but I also have a sub-domain for French fr.example.myhost.com which is different than example.myhost.com.
If I'm at fr.example.myhost.com and I use window.location.href, I get example.myhost.com instead of fr.example.myhost.com.
How do I get the URL typed in the address bar of the browser?
alert(location)?location.hrefshould give you the entire url.