How to Get the Browser to Navigate to Url in Javascript [Duplicate]
What Is the Best (Correct, Modern, Cross-Browser, Safe) Way to Get a Web Browser to Navigate to a Url of Your Choice Using Javascript? 3 3 Answers This Works...
What is the best (correct, modern, cross-browser, safe) way to get a web browser to navigate to a URL of your choice using JavaScript?
This works in all browsers:
window.location.href = '...';
If you wanted to change the page without it reflecting in the browser back history, you can do:
window.location.replace('...');
Try these:
window.location.href = 'window.location.assign("");window.location = '
For more see this link: other ways to reload the page with JavaScript
It seems that this is the correct way window.location.assign("");