Returns the hyperlink's URL's host and port (if different from the default port for the scheme).
Can be set, to change the URL's host and port.
Readonly
originReturns the hyperlink's URL's origin.
Returns the hyperlink's URL's query (includes leading "?" if non-empty).
Can be set, to change the URL's query (ignores leading "?").
Returns the hyperlink's URL's fragment (includes leading "#" if non-empty).
Can be set, to change the URL's fragment (ignores leading "#").
MDN Reference