This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
programmieren:javascript:url_mit_paramatern_aendern_und_laden [2022/01/31 20:43] – jgehrke | programmieren:javascript:url_mit_paramatern_aendern_und_laden [2022/12/17 12:28] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 4: | Line 4: | ||
<code javascript> | <code javascript> | ||
- | const url_host | + | const url_host |
- | const url_path | + | const url_path |
- | const url_search_string = window.location.search; | + | const url_search_string = window.location.search; |
- | const url_params_object = new URLSearchParams( | + | url_params_object = new URLSearchParams( |
- | | + | url_params_object.set( ' |
- | const url_params_string = url_params.toString(); | + | const url_params_string = url_params.toString(); |
- | const new_url | + | const new_url |
- | window.location.replace( new_url ); | + | window.location.replace( new_url ); |
</ | </ | ||
**Hinweis: | **Hinweis: | ||
+ | |||
+ | **MDN Doku:** | ||
+ | * [[https:// | ||
+ | * [[https:// |