Please use the Question Tags to state the name and full version of the Story Format you are using, as answers can vary based on that information.
As TheMadExile explained to someone else recently...
Your game is a guest in the player's browser, be a good one. Attempting to close tabs/windows without permission is not how you go about that.
... forcing someone's web-browser to shut down is generally considered bad manners, especially as they are already capable of doing that them-self via the web-browser's own interface.
Probably a reset/reload link that would take them back to the beginning.
You still need to tell us which Story Format you are using.