Ajax load on a page - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:ajax

Description

Ajax load on a page

Demo Code

ResultView the demo in separate window

<html>
   <head> 
      <meta name="viewport" content="width=device-width, initial-scale=1"> 
      <script type="text/javascript" src="https://code.jquery.com/jquery-2.0.2.js"></script> 
      <script type="text/javascript">
    $(window).load(function(){/*from w w  w.  j ava 2 s.  c om*/
$(function(){
    $('#load').load('http://www.google.com');
});
    });

      </script> 
   </head> 
   <body> 
      <div id="load"></div>  
   </body>
</html>

Related Tutorials