JavaScript » Link » pathname

Syntax:
object.pathname

The pathname property is a string portion of a URL specifying how a particular resource can be accessed.

Pathname is a property of both the Link and the Location objects and is a string portion of a URL specifying how a particular resource can be accessed.

NOTE:
 
Although the pathname property can be set at any time, it is safer to set the href property to change a link.

Examples

Code:
document.write(document.links[0].pathname)
Output:
products/enquiries.htm
Explanation:

Assuming a link (stored in the first element of the links property) to a URL ...
 
http://home.newco.com/products/enquiries.htm#local?email=name@otherco.com
 
...this code would display the pathname property of it.