T
Tony
Basically, I have to find a way to hold up execution of a script while
I wait for a button to be clicked, in the same manner as alert() or
confirm() do, but without using either of those.
The basic idea is that an "alert" box is created with one or two
buttons on it, then when a button is clicked the script completes.
I've tried something like
do {
isClicked = confirmClick;
} while (!isClicked);
and the button has onclick='confirmClick=true'
but when I try this, I get an error that the javascript is taking too
long to execute & do I want to cancel it...
Is there any way at all to do this? I thought that using a loop like
that would do the trick, but it appears that it won't...
I wait for a button to be clicked, in the same manner as alert() or
confirm() do, but without using either of those.
The basic idea is that an "alert" box is created with one or two
buttons on it, then when a button is clicked the script completes.
I've tried something like
do {
isClicked = confirmClick;
} while (!isClicked);
and the button has onclick='confirmClick=true'
but when I try this, I get an error that the javascript is taking too
long to execute & do I want to cancel it...
Is there any way at all to do this? I thought that using a loop like
that would do the trick, but it appears that it won't...