Popup a redirection after clicking - Javascript jQuery

Javascript examples for jQuery:Mouse Event

Description

Popup a redirection after clicking

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.2.3.js"></script> 
  <script type="text/javascript">
    window.onload=function(){// w ww. j  a  v  a  2  s.  c o m
$(".link").click(function(){
   window.open($(this).attr("href"), "popupWindow", "width=600,height=600,scrollbars=yes");
});
    }

      </script> 
 </head> 
 <body> 
  <a href="http://www.google.com/" class="thumbnail link" target="_blank" data-window="//www.google.com/"> Link </a>  
 </body>
</html>

Related Tutorials