javascript pathname attribute
Translation results:
UK [pæθ'neɪm] US [pæθ'neɪm]
n.Path name
javascript pathname attributesyntax
Function: Set or return the path part of the current URL.
Syntax: location.pathname=path
javascript pathname attributeexample
<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