Location.href - Web documentation
property Location.href

Returns the Location object's URL.

Cannot be set in Deno.

Type

string