setTimeout(function (){ // Something you want delayed. }, 5000); // How long you want the delay to be, measured in milliseconds.