This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

close a message box after a particular time interval in javascript

 
narayana Ega
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to close a message box after a particular time interval .i am using this but it is not working well.

SetTimeOut("alert("Aggregates Updated.........").close()",2000);

can any one help me to do this.........?
 
Bear Bibeault
Author and ninkuma
Marshal
Pie
Posts: 64982
86
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As your statement is full of syntax errors, that won't work. Also, you need a handle to the window to close it. And you can only close windows that you opened yourself.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic