jquery to check url path to detect is it chaanged with out redirecting code example Example: javascript change url without redirect window.history.pushState("", "", '/newpage');