/ Published in: JavaScript
                    
                                        
                            
                                Expand |
                                Embed | Plain Text
                            
                        
                        Copy this code and paste it in your HTML
//The most common example you'll find
setTimeout("alert('timed out');"},5000);
//The best solution as this gidevs you full flexibility using 'closure'
setTimeout(function()
{
alert("timed out");
},5000);
Comments
 Subscribe to comments
                    Subscribe to comments
                
                