javascript - hiding the parameters from the url in a new tab -
this meteor client code shows parameters param
when opens destination link in new tab. how can done values in param
hidden url , not displayed? thanks
let windowref = null; let url = 'http://www.someurl/?'; let param = {key1:val1,...} object.entries(param).foreach(([key, value]) => url += key + '=' + value + '&'); windowref = window.open(url.slice(0, -1), "mywindow");
edit
windowref.history.pushstate("removing query", "title", "/");
did not remove param
values url in newly opened tab.
- you can try redirect new url no parameter.
when user hit url can save query params in local storage or sessions. can redirect no parameter.
- there's script guys @ wistia may you're looking for: link
Comments
Post a Comment