Jump to content

NomenNescio

Members
  • Posts

    2
  • Joined

  • Last visited

Everything posted by NomenNescio

  1. <html><head><script type="text/javascript">function disp_prompt(){times=prompt("How many numbers?","0")var numbers = "";while(times > 0){var x = Math.round(9*Math.random());numbers = numbers + x;times--;}document.write(numbers); }</script></head><body><input type="button" onclick="disp_prompt()" value="Display a prompt box" /></body></html> I created this code, After I enter the amount of numbers I want to be generated it gets stuck.I'm wondering why. Thank you for your time.
×
×
  • Create New...