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
<html> <head> <meta charset="UTF-8"> </head> <body> <script type="text/javascript"> document.write(location.pathname); </script> </body> </html>
Run instance »
Click the "Run instance" button to view the online instance