Load ajax call for a delay - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

Load ajax call for a delay

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.min.js"></script> 
      <script>
    setTimeout(function(){//from  w  w w.  j  a  v  a2 s. c o  m
     $("#showRes").load("example.php");
    }, 5000);
  
      </script> 
   </head> 
   <body> 
      <div id="showRes"></div>  
   </body>
</html>

Related Tutorials