No that will close the browser window. I just want to close the div/iframe where the game is running.
To clarify. On the site there is a button to start the game:
Clicking this button will open a modal/div with an iframe with the game running inside.
Once you've finished play the game, there is a close button in the game.
I need to click this ingame button to close the modal/div on the site.