Whats the difference between window.location.host and window.location.hostname

Viewed 31383

They both seem to give me the same thing (the domain name currently executing the script).

So what's the difference (if any) and where should each be used?

1 Answers
Related