Easy Tutorial
❮ Prop Style Backgroundsize Prop Frame Longdesc ❯

Location pathname Property


Definition and Usage

The pathname property is a read-write string that sets or returns the path part of the current URL.

Syntax


Browser Support

All major browsers support the pathname property.


Example

Return the pathname of the current URL:

The output of the above example:


❮ Prop Style Backgroundsize Prop Frame Longdesc ❯