title: How to call a function without pressing a button
body: <p>I have a homework assignment to create a game. So I have created a game that generates random numbers, displays them, then after a few seconds the numbers disappear and the user has to enter them in descending order. The game works fine and all the output is correct... but the problem is I have created different functions for creating numbers, arranging them, accept.. and I have to press the enter key a few time each time a function call comes.</p>
  
  <p>Is there a way by which these functions get called without pressing any key to make the program work without pressing the enter key?</p>