setTimeout() allows you to run code after a set number of milliseconds
(1000 miliseconds = 1 second).In this example, JavaScript will open an
alert box 5 seconds after arriving to this page.
<script>
// Using window.setTimeout()
// Create a variable to hold our action
var action = "window.alert('Hello There :D');";
// Let's call our action in 4 seconds
setTimeout(action, 4000);
</script>