hgerdin
hgerdin

Reputation: 637

Pause javascript execution while waiting on response

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

Answers (1)

Paolo
Paolo

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

Related Questions