I am using ajax to load my website content and want to update the window location when ajax is successful.
How can I update the window location to \"/newpage\"?? I n
Assuming you want to change the url to another within the same domain, you can use this:
history.pushState('data', '', 'http://www.yourcurrentdomain.com/new/path');