Vensterligging.padnaam
Voorbeeld
Kry die huidige pad:
let path x = location.pathname;
Definisie en gebruik
Die pathname
eienskap stel of gee die padnaam van 'n URL (bladsy) terug.
Sintaksis
Gee die padnaam-eienskap terug:
location.pathname
Stel die padnaam-eienskap:
location.pathname = path
Eiendomswaardes
Parameter | Description |
path | The pathname of the URL. |
Terugkeerwaarde
Tik | Beskrywing |
’n Toutjie | Die huidige padnaam. |
Blaaierondersteuning
location.pathname
word in alle blaaiers ondersteun:
Chrome | IE | Edge | Firefox | Safari | Opera |
Yes | Yes | Yes | Yes | Yes | Yes |