Answers for "javascript add query parameter to url without refresh"

5

javascript change query parameter without reloading

window.history.pushState('', 'New Page Title', '/new-url.php');
Posted by: Guest on July-22-2019
0

add parameter to url without reload jquery

var refresh = window.location.protocol + "//" + window.location.host + window.location.pathname + '?arg=1';    
window.history.pushState({ path: refresh }, '', refresh);
Posted by: Guest on May-16-2021

Code answers related to "javascript add query parameter to url without refresh"

Code answers related to "Javascript"

Browse Popular Code Answers by Language