Is there any return value for alert box?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • subalakshmi
    New Member
    • Jan 2007
    • 1

    Is there any return value for alert box?

    I want to redirect to some other page when i click OK button in the alert box.. how can I do that?
  • iam_clint
    Recognized Expert Top Contributor
    • Jul 2006
    • 1207

    #2
    an alert halts the script untill the ok button is pressed if i am not mistaken so you can do alert then window.location afterwords and should give you what you were looking for

    Comment

    • Rathorevivek
      New Member
      • Dec 2006
      • 17

      #3
      Originally posted by subalakshmi
      I want to redirect to some other page when i click OK button in the alert box.. how can I do that?
      Hi Laxmi,

      add return true after the alert u have mentioned in ur code.

      Regards,
      Vivek Rathore.

      Comment

      Working...