UK [pæθ'neɪm] US [pæθ'neɪm]

n.Path name

javascript pathname attribute syntax

Function:Set or return the path part of the current URL.

Syntax:location.pathname=path

javascript pathname attribute example

   

Run instance »

Click the "Run instance" button to view the online instance