aspose file tools
The moose likes HTML, CSS and JavaScript and the fly likes Alert timeout Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Reply Bookmark "Alert timeout" Watch "Alert timeout" New topic
Author

Alert timeout

Kedar Dravid
Ranch Hand

Joined: May 28, 2004
Posts: 333
I want to display alerts on my JSP pages for only a fixed period of time, say, 4 seconds. Right now on the body onLoad() of a JSP, I am calling a Javascript funtion which displays the alert. I want these alerts to disappear after say, 3 or 4 seconds
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15357
    
    6
You can not close alerts, only the user can. You will need to use layers to produce teh same effect.

Eric
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Alert timeout
 
Similar Threads
problematic ejb ql query
setInterval and clearInterval functions
response to JSP
ALerts in jsp
How to do debugging in Javascript