javascript - How to open another link in new tab with same popup button -


i'm using button open ajax html popup, same button on click want open page in new tab...any appreciated

here's html code i'm using

<a href="test.html" class="ajax-popup-link"><button type="button" style="background:green;float:right;">activate</button></a> 

here's javascript function

<script src="../assets/jquery.magnific-popup.js"></script> <script type="text/javascript"> $(document).ready(function() { $('.ajax-popup-link').magnificpopup({     type: 'ajax',     overflowy: 'scroll',  closeoncontentclick: false }); });</script> 

add event it:

$('.ajax-popup-link').click(function(){      window.open("/some-link.html"); // can pass options }); 

Comments

Popular posts from this blog

IF statement in MySQL trigger -

c++ - What does MSC in "// appease MSC" comments mean? -

javascript - Blogger related post gadget image Resize s72-c [ Need Expert Help ] -