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);
});
There are currently no comments.