Win a copy of Mesos in Action this week in the Cloud/Virtualizaton 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: 64843
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