pathname

Returns the hyperlink's URL's path.

Can be set, to change the URL's path.

MDN Reference