J
J
jenya77712018-02-24 15:14:06
JavaScript
jenya7771, 2018-02-24 15:14:06

How to insert GET parameters into the address bar?

Hello, I have a page with a filter, and to save data in the filter, I want to write them to the get parameters, how can this be done?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Stepan Krapivin, 2018-02-24
@jenya7771

window.location.search = "?filter=cars"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question