Reputation: 637
I'm looking for a way to pause a javascript function while waiting for the user to make a choice. I would like it to work like prompt, alert or confirm (they pause the script) but I would like to create my own query box in html.
Is there any way that I can achieve this?
Upvotes: 0
Views: 1548
Reputation: 15827
Setup a callback that will be called when the user make the choice then let the javascript end after showing the choices to the user.
Upvotes: 2