How to Get Query String Parameters with JavaScript

If you are referring to the ?idx=001&q=some+search+string kind of parameters, within javascript they’re a part of the Location object, found under (for example) window.location.search. A great page that demonstrates how to parse those out can be found on Devdocs: https://devdocs.io/dom/htmlhyperlinkelementutils/search