Location Property

https://AyrA:dQw4w9WgXcQ@cable.ayra.ch:8443/location/index.php?a=1&b=2#bKkbbtJh29s

Segments

Hover over a segment to highlight it

href

This is the full URL

host

Hostname + : + Port

protocol

This is the protocol of the URL, including : but excluding any slashes.

username

This specifies the username that is to be used when the server requests authentication. If present, the @ symbol is placed before the hostnme.
For mailto links this is used as the part before the @.

password

This specifies the password that is to be used when the server requests authentication. If present, the @ symbol is placed before the hostnme.
Because this is considered unsafe some applications might ignore this part and prompt the user. The password is preceeded by :

origin

Combination of Protocol + Host. Depending on the protocol slashes might be required (for example http,https,ftp), or not (telnet,tel,mailto).
The origin is used by the browser to determine if a resource comes from the same host or not. If it doesn't, some restrictions are applied to the resource.

hostname

Essentially the IP Address or DNS name of the service. In the case of tel, this is the phone number.

pathname

This specified the location of the resource on the given server.

port

The Port number of the service. This is only specified if the port is not the default value for the given Protocol. Some protocols don't have a Port at all. Examples of default ports:

https443
http80
ftp21

hash

This specifies arguments for the client.

Format

This parameter (if not empty) always starts with #. There is no specific format apart from that. It can contain text, numbers, JSON and more. It's not sent to the server.

search

This specifies any arguments to pass to the server.

Format

This parameter (if not empty) always starts with ?. It is made up of key=value pairs which are separated using &