Return the path name of the current URL:
The result of x will be:
The pathname property sets or returns the pathname of a URL.
Property | |||||
---|---|---|---|---|---|
pathname | Yes | Yes | Yes | Yes | Yes |
Return the pathname property:
Set the pathname property:
Value | Type | Description |
---|---|---|
path | String | Specifies the pathname of the URL |
Return Value: | A String, representing the pathname |
---|