Click here to Skip to main content
15,888,020 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I want to show alert box only for 3 seconds (Means it show & hide automatically). I have search lot of in google but doesn't get answer. Any suggestion really appreciate.
Posted
v2

1 solution

Hi could do like this:
JavaScript
function fn() {
    var w = window.open('', '', 'width=300,height=2px')
    w.document.write('Product has been added to your Order List !')
    w.focus()
    setTimeout(function () { w.close(); }, 2000);
}
 
Share this answer
 
v2
Comments
ridoy 21-Aug-13 5:47am    
5ed!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900