Hi all,

I'm trying to figure out how to make the game quit with Javascript.

I've seen this done in another Ct.js game, but I can't find anything in the documentation.

Thanks

    window.close(), put it in a Click event of any template.

      Thanks! I couldn't get your suggestion to work but it helped me find something that did

      I ended up using Neutralino.app.exit() instead

      metalharbor yes, this is a method for desktop builds. The window.close method is for browser builds.

        Thanks, I will keep that in mind for web publishing

          Write a Reply...