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
Microsoft Developer Network: [Windows Internet Explorer API reference Article]