How to create a new window and change its location (without CORS complaints)

you’ll need to send messages to and from the window and it’s opener

so you could fire off a message that says

hey can you reload please

and then the window can listen for that message and reload

That’s basically what anvil does when you run an app in a new tab
and then hit restart

you’ll want to look at the postMessage
and the addEventListener("message")


related post with some useful snippets

2 Likes