0

When executing window.open I want to open a new tab but in my page it opens a new window. How can I open in a new tab?

Here is my code :

                $('.visu_cr_pdf').click(function(){                 
                $.post("{ART_wwwroot}page.php?module={module}&action=gene_p4_pdf",$('#p4_cr'), function(data) {
                    var reponse = $.parseJSON(data);
                    if(reponse.status=='success'){


                        window.open('{ART_wwwroot}page.php?module={module}&action=visu_p4_cr','_blank');
                        return false;
                    }     
                });

            }); 
08Dc91wk
  • 4,254
  • 8
  • 34
  • 67
soso
  • 3
  • 1
  • 3

1 Answers1

1

Did you try setting the attribute target="_blank" directly in your form? (the mdn)

paulojean
  • 113
  • 1
  • 6