Objekt location
| Metody | Syntax | Popis |
|---|---|---|
| reload() | location.reload() | aktualizuje dokument (při použití atributu true se dokumnet načte celý ze serveru a ne z cache) |
| replace() | location.replace(url) | přenačte dokument jiným |
| Vlastnosti | Syntax | Popis |
|---|---|---|
| hash | location.hash | část adresy za # (vnitrostránkový odkaz) |
| host | location.host | jméno hostitele a portu |
| hostname | location.hostname | jméno hostitele |
| href | location.href | komplentí URL adresa |
| pathname | location.pathname | cesta v URL adrese |
| port | location.port | komunikační port |
| protocol | location.protocol | protokolová část URL (např. http![]() |
| search | location.search | část adresy za ? |
Zpět na obsah referencí



