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?