Window-location.assign()-Methode
- Vorherige Seite assign()
- Nächste Seite hash
- Zurück zur vorherigen Ebene Window Location
Definition and usage
assign()
Method to load a new document.
See also:
The difference between assign() and replace():
replace()
Remove the current URL from the document history.
Use replace()
Cannot use 'back' navigation to return to the original document.
Syntax
location.assign(URL)
Parameter
Parameter | Description |
---|---|
URL | Required. The URL of the page to navigate to. |
Return value
None.
Browser support
Alle Browser unterstützen location.assign()
:
Chrome | IE | Edge | Firefox | Safari | Opera |
---|---|---|---|---|---|
Chrome | IE | Edge | Firefox | Safari | Opera |
Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung | Unterstützung |
- Vorherige Seite assign()
- Nächste Seite hash
- Zurück zur vorherigen Ebene Window Location