Answers for "how to handle url change in javascript"

3

javascript change url

var url =  window.location.origin + '/foo/foo.php';
history.pushState({}, null, url);
Posted by: Guest on June-15-2021
0

check for url change js

window.addEventListener('popstate', function (event) {
	// The URL changed...
});
Posted by: Guest on August-19-2021

Code answers related to "how to handle url change in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language