Answers for "JavaScript update URL parameter without reload"

5

javascript update url without reload

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

javascript change get parameter without reload

Since this is the accepted answer, and no longer true, refer to this duplicate question for up to date information.

Original answer follows:

NO
You can come close with the anchor portion of the URL which is accessible by the hash property of the location object

parent.location.hash = "whatever value you want";
Posted by: Guest on March-11-2021

Code answers related to "JavaScript update URL parameter without reload"

Code answers related to "Javascript"

Browse Popular Code Answers by Language