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

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -