How to navigate to a page. The second method will not record the current URL in browser history -
useful when using it within a redirect page, so the user can return to the previuos page using the back button.


window.location.href = url;  //record in history and redirect
window.location.replace(url);  //redirect and DO NOT record in history

Keyword Reference