I'm making a simple html page in which when I click an image, it opens a new popup that contains a minigame. When a user finishes the game and closes the popup, it redirects the parent window to a new URL.
Here is my code,
<div class="single-featured img-full">
<a onclick="openGameWindow();">
<img src="https://www.htmlgames.com/uploaded/game/thumb500/bubblebilliards500300.webp" width="500px" height="300px" alt=""></a>
</div>
And here is my Script,
<script>
function openGameWindow() {
window.open('https://cdn.htmlgames.com/BubbleBilliards/',
'popUpWindow','height=400,width=400,left=100,top=100,resizable=yes,scrollbars=yes,toolbar=yes,menubar=no,location=no,directories=no, status=yes');
}
</script>
anyone can give a solution on what to add to my script?