Vadiok
3/10/2016 - 8:57 AM

Разбор значений ключей window.location

Разбор значений ключей window.location

JavaScript: Разбор window.location

http://user:pass@example.org:8888/foo/bar?q=baz#some_hash

  • hash: #some_hash
  • host: example.org:8888
  • hostname: example.org
  • href: http://user:pass@example.org/foo/bar?q=baz#some_hash
  • origin: http://example.org - неизвестно как ведет себя при указанном user:pass?
  • password: pass
  • pathname: /foo/bar
  • port: 8888
  • protocol: http:
  • search: ?q=baz
  • username: user