Closed fayazara closed 2 years ago
Just a cautionary note: doesn't work on evergreen browser, IE.
Haha. Yes, we know. But we don't care about IE things now. I think IE developers are lazy to update their web API in the browser. :) @anubhavsrivastava
Simply use this line to get query parameters from url in Javascript
let urlParams = new URLSearchParams(window.location.search.substring(1));
let value = urlParams.get("query");