javascript - Magnific popup how to catch close? -
this magnific popup
<script> $(document).ready(function () { setinterval(function () { $.magnificpopup.open({ items: { src: '#recently-viewed-popup' }, type: 'inline' }); }, <?php echo $time_popup; ?>); }); </script>
i catch open, how catch when client close ?
try this:
<script> $(document).ready(function () { setinterval(function () { $.magnificpopup.open({ items: { src: '#recently-viewed-popup' }, type: 'inline' }); }, <?php echo $time_popup; ?>); }); $.magnificpopup.close({ alert(55); }) </script>
but without effect.
<script> $(document).ready(function () { setinterval(function () { $.magnificpopup.open({ items: { src: '#recently-viewed-popup' }, type: 'inline', callbacks: { close: function testt(){ alert(33); } } }); }, <?php echo $time_popup; ?>); }); </script>
Comments
Post a Comment