| Programming C# C++ (7) Delphi (617) Java (8) JavaScript (31) Document (8) Events (8) ExtJS (9) Strings (3) perl (9) php (4) VBScript (1) Visual Basic (1) New related comments Number of comments in the last 48 hours Have a Javascript popup display Yes/ No instead of Confirm/ Cancel |
Show an HTML message box that disappears after 2 seconds
Question: I need to show an HTML message box that disappears after 2 seconds.It does not need to be a popup window. Answer: Simply display a centered HTML table with a button that says 'please click'.You can also do an automatic redirect after 3 seconds as shown below. The sample code uses the setTimeout() function which will call the redirecting javascript function after 3000 milliseconds.
Comments:
| ||||||||||||||||||||||||||||