Skip to main content
Location.pathname - Platform - Web documentation
property Location.pathname

Returns the Location object's URL's path.

Cannot be set in Deno.

Type

string