Alert box doesn't wait

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Andrew Poulos

    Alert box doesn't wait

    I've got some code then I call an alert and then some more code. On IE
    the second lot of code doesn't execute until the I click "ok" on the
    alert (which is what I want) but in MZ and FF the second lot of code
    executes even though the alert has not yet been dismissed.

    Is there a way to get MZ and FF to wait?


    Andrew Poulos
  • Andrew Poulos

    #2
    Re: Alert box doesn't wait

    Andrew Poulos wrote:
    [color=blue]
    > I've got some code then I call an alert and then some more code. On IE
    > the second lot of code doesn't execute until the I click "ok" on the
    > alert (which is what I want) but in MZ and FF the second lot of code
    > executes even though the alert has not yet been dismissed.
    >
    > Is there a way to get MZ and FF to wait?[/color]

    Found the problem: the alert call was inside a setTimeout call.

    Andrew Poulos

    Comment

    Working...