// https://example.com:81/path?argument=value#hash
location.href // https://example.com:81/path?argument=value#hash
location.protocol // https
location.hostname // example.com
location.port // 81
location.host // example.com:81
location.pathname // /path
location.search // ?argument=value (see URLSearchParams to parse)
location.hash // #hash
location.origin // https://example.com"