Possible Duplicate:
Whats the difference between window.location.host and window.location.hostname
I'm looking at the window variable using the console and I notice that there are two different fields, one named host and the other hostname. After I've checked a few sites, there seems to be the same value in both. What is the difference between them? Which should be used for what purpose?
 
     
     
    