Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

close a message box after a particular time interval in javascript  RSS feed

 
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
Posts: 65830
134
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
Boost this thread!