12
rated 0 times
[
15]
[
3]
/ answers: 1 / hits: 21583
/ 13 Years ago, sun, february 5, 2012, 12:00:00
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?
More From » javascript