Fancybox, how to redirect after a Submit

1

I need help with Fancybox, I do not understand how to make the LigtBox close and redirect the entire browser to another site after a POST from a Submit button.

Here I leave the code

  <script type="text/javascript">
        $(document).ready(function() {
            $('.fancybox').fancybox();
                $("#licencia").click(function() {
                $.fancybox.open({
                    href : 'licencia.html',
                    type : 'iframe',
                    padding : 5
                });
            });
        });
    </script>
    
asked by GusGeek 10.01.2017 в 13:54
source

1 answer

0

Add this:

window.location.replace("http://pt.stackoverflow.com");
    
answered by 10.01.2017 в 17:47