Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

HTML Game Exit

A topic by devshine created Oct 23, 2020 Views: 319 Replies: 2
Viewing posts 1 to 3

I have marked my HTML game to Start full screen. How do I programatically exit the game with javascript from within my HTML game? I want the user taken back to my game's page that they see before clicking Start Game.

(+1)

I am not sure but is there any difference of fullscreen itch than any other page? 

Tried "document.exitFullscreen();" ?

https://www.w3schools.com/jsref/met_element_exitfullscreen.asp

(+1)

The start fullscreen isn't actually that kind of full screen. It just tells itch to give the whole browser window to my game.

This topic has been auto-archived and can no longer be posted in because there haven't been any posts in a while.