Prevent jQuery() from executing javascript and add delay - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:html

Description

Prevent jQuery() from executing javascript and add delay

Demo Code

ResultView the demo in separate window

<html id="da_html">
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-1.6.2.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*from   ww w  . j  a v  a  2s.co m*/
setTimeout(function(){$('body').html('mooo'); $('da_html')}, 3000);
    });

      </script> 
   </head> 
   <body>   
      <script>
            console.log('wtf');
        
      </script>      
   </body>
</html>

Related Tutorials