Jquery onclick link load url - Javascript jQuery

Javascript examples for jQuery:Link

Description

Jquery onclick link load url

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-git.js"></script> 
 </head> /*from w ww.ja  va  2  s . c  o  m*/
 <body> 
  <a href="#" onclick="myFun()">Google</a> 
  <div id="load_url"></div> 
  <script type="text/javascript">
var myFun = function () {
    $('#load_url').show(1000).load('http://google.es');
};

      </script>  
 </body>
</html>

Related Tutorials