Sending an url and staying on the same page - Javascript jQuery Method and Property

Javascript examples for jQuery Method and Property:get

Description

Sending an url and staying on the same page

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta http-equiv="Content-type" content="text/html; charset=utf-8"> 
  <script src="https://code.jquery.com/jquery-1.8.2.min.js" type="text/javascript"></script> 
 </head> /*from ww w. j  a  va2 s.co  m*/
 <body> 
  <a href="#" id="myBtn">Click here!</a> 
  <script type="text/javascript">
  $(document).ready(function(){
     $("#myBtn").click(function(){
       $.get("http://your server");
     });
  });

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

Related Tutorials