...
jQuery, Tutorials

Execute Javascript function after 5 seconds

19 February 2018

Here we will see execute javascript function after 5 seconds using setTimeout() function:

$(document).ready(function() {
  setTimeout(function() {
   my_function(); 
   /* Write desired function here */
  }, 5000);
});

Leave a Comments