location.host vs location.hostname and cross-browser compatibility?
As a little memo: the interactive link anatomy — In short (assuming a location of http://example.org:8888/foo/bar#bang): hostname gives you example.org host gives you example.org:8888