javascript do an action in 5 seconds code example Example: run a function after delay javascript setTimeout(function() { your_func(); }, 5000);