Разбор значений ключей window.location
hash
: #some_hashhost
: example.org:8888hostname
: example.orghref
: http://user:pass@example.org/foo/bar?q=baz#some_hashorigin
: http://example.org - неизвестно как ведет себя при указанном user:pass
?password
: passpathname
: /foo/barport
: 8888protocol
: http:search
: ?q=bazusername
: user