File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes  close a message box after a particular time interval  in javascript Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark " close a message box after a particular time interval  in javascript" Watch " close a message box after a particular time interval  in javascript" New topic
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: 61010
    
  65

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.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: close a message box after a particular time interval in javascript