I want to display the alert box but for a certain interval. Is it possible in JavaScript?
If you are looking for an alert that dissapears after an interval you could try the jQuery UI Dialog widget.