close alert window automatically after 10 seconds.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yogesh6585
    New Member
    • May 2010
    • 2

    close alert window automatically after 10 seconds.

    How can i close alert box automatically without user iteration?

    i call the another method but javascript execute code continue and i need to stop the execution for 5 to 10 second, i can not use sleep, wait or setTimeout method because this method also execute some code. like alert stop the process if user press ok button then continue the code execution.
  • Dormilich
    Recognized Expert Expert
    • Aug 2008
    • 8694

    #2
    I don’t think you can automaticly close a modal window like alert().

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Your only option is to use a pseudo-modal alert box using DHTML. It won't be completely modal (e.g. you'll be able to select other tabs), but for your purpose, it should be fine.

      Comment

      • yogesh6585
        New Member
        • May 2010
        • 2

        #4
        Thanks for your replay.

        Comment

        Working...