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

Returns the Location object's URL's path.

Cannot be set in Deno.

Type

string
Back to top