Answers for "js update query string without refresh"

0

js update query string without refresh

if (history.pushState) {
    var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?myNewUrlQuery=1';
    window.history.pushState({path:newurl},'',newurl);
}
Posted by: Guest on August-27-2021
0

js update query string without refresh

if (history.pushState) {
    var newurl = window.location.protocol + "//" + window.location.host + window.location.pathname + '?myNewUrlQuery=1';
    window.history.pushState({path:newurl},'',newurl);
}
Posted by: Guest on August-27-2021

Code answers related to "js update query string without refresh"

Code answers related to "Javascript"

Browse Popular Code Answers by Language