This page is In Progress

Notice: The WebPlatform project, supported by various stewards between 2012 and 2015, has been discontinued. This site is now available on github.

pathname

Summary

Sets or retrieves the file name or path specified by the object.

Property of dom/Locationdom/Location

Syntax

var pathName = location.pathname;
location.pathname = pathName;

Return Value

Returns an object of type StringString

The path component of the URL.

Attributions