| Author |
close a message box after a particular time interval in javascript
|
narayana Ega
Greenhorn
Joined: Aug 23, 2012
Posts: 26
|
|
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
Joined: Jan 10, 2002
Posts: 56168
|
|
|
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.
|
[Smart Questions] [JSP FAQ] [Books by Bear] [Bear's FrontMan] [About Bear]
|
 |
 |
|
|
subject: close a message box after a particular time interval in javascript
|
|
|