1

I am using the following code

<form id="export" target="_blank" action='exported_data.php' method="get" >
<input type="hidden" id="data" name="data" value="">
</form>

this is my JS

$.ajax({ url: baseUrl + 'entities/GetExportDetails/entity/'+entity,
        type: "GET",
        async: false,
        data: {"id": recordid},
        success: function( response ) {
        $("#data").val(response);
        $("#export").submit();
    }       
    });

Now the issue is that I am using the target=_blank in the form . When I submit the Form in FF or in IE the exported_data.php opens in a new tab but in Chrom it is opening in a pop-up. I don't want it to be opened in the Pop-Up. Can u please help me that It opens in the new tab in all browsers

mplungjan
  • 169,008
  • 28
  • 173
  • 236
Nabeel Arshad
  • 467
  • 2
  • 7
  • 22

1 Answers1

0

The choice to open in a new tab or window cannot be configured by us. Its dependent on the browser settings. We can only provide an option to open in a new tab/window or replace the contents in the existing window.

Darshan
  • 91
  • 1
  • 6