Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Save that user dont register it, getAppletContext() Context.showDocument  RSS feed

Lucian Botezatul
Posts: 20
Eclipse IDE Firefox Browser
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have a quiz and the problem is that user often click the browser (applet) window away instead of the button "finish game"
in this case all the data get loose ...

IDEA: ???
My idea was to save the data after each 10 questions, and i have the problem that the browser shows a window.

I want to hide the window, or close it automaticaly when it opens

here the code when the game is closed with the "finish game" button

Can i reuse the same code with little changes ??

Now i was think to use the same code and try to put something else as the procedure who open the window when saving

Line 41 / 42

Any ideas ?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!