Window location.pathname-eigenschap
- Previous Page origin
- Next Page port
- Go to Parent Level Window Location
Definitie en gebruik
pathname
Stel of retourneer de padnaam van de URL (pagina).
Syntax
Geef pathname-eigenschap terug:
location.pathname
Stel pathname-eigenschap in:
location.pathname = pad
eigenschapswaarde
waarde | Description |
---|---|
pad | URL 的路径名。 |
Return Value
Type | Description |
---|---|
String | Current Pathname. |
Browser Support
All Browsers Support location.pathname
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Support | Support | Support | Support | Support | Support |
- Previous Page origin
- Next Page port
- Go to Parent Level Window Location