Javascript - How to change url using Javascript, Changing URL in Address Bar using Javascript

How to change url using Javascript

By using this we can change the url of the page in address bar without reloading the page. This can be used for ajax calls that need to change url without reloading the page.
 window.history.pushState("string", "Title", "/new-url"); 

 window.history.replaceState("string", "Title", "/another-new-url"); 

The topic on Javascript - How to change url using Javascript is posted by - Math

Hope you have enjoyed, Javascript - How to change url using JavascriptThanks for your time

Tech Bluff