jquery - popup opens on the same page instead of using new window -


i'm trying out simple popup example

<html> <script type="text/javascript">  $('.example1demo').popupwindow({  height:500,  width:800,  top:50,  left:50  });  </script> <p><a href="http://www.yahoo.com" title="yahoo.com" class="example1demo">open popup</a></p>  </html> 

checked firefox , chrome - instead of opening pop-up on new window .it uses same window. how resolve issue , open pop-up on new window?

you can have @ below code:

 <script type="text/javascript"> function openwindow1() { var url = "please specify url"; window.open(url,"recoverpassword","width=700,height=450"); } </script> <body> <a onclick="openwindow1()" href="#">forgot password </a> </body> 

hope you.


Comments