javascript document ready function - Javascript jQuery

Javascript examples for jQuery:Document

Description

javascript document ready function

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <title>My Site</title> 
      <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.10.2/jquery.min.js"></script> 
      <script type="text/javascript">
        $(document).ready(function ()
        {//from   w  w w . j a  v a 2s .c om
            window.alert("function started");
        });
    
      </script> 
   </head> 
   <body>  
   </body>
</html>

Related Tutorials