confirm and firefox

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • jtaylor
    New Member
    • Sep 2006
    • 3

    confirm and firefox

    Hi,

    I am sure there is a simple answer to this but I dont know.

    I have a asp/javascipt page that uses confirm to prompt a question. Depending on the answer I display a different alert message.

    Under IE works great. If I run under Fire fox 1.5.0.7, I get prompted but then it like it just quits the page after that. Never gets to the next line.

    Any idea.

    thank you
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    Probably a bug in the code. The following should work:
    [code=javascript]if (confirm("Are you sure you wish to continue?")) {
    //OK was pressed
    } else {
    //Cancel was pressed
    }[/code]

    Comment

    Working...