I want to make a page with a lot of Javascript interactions. However, while a user navigates through the page the URL must change too. So, when the user shares the URL or sa
Set this value: window.location.href
window.location.href = "myapp.com/page2";