-2

I have 2 sheet of csv in different .php file and they give an output with php://output.

when the user click a single link, i want to run multiple links.

I tried like this, but it ran the only last link:

<a onclick="$.csvIndir();" class="btn btn-warning btn-lg">SAP Raporu</a>

$.csvIndir = function() {
    window.location.href = "finansuzmaniCSVRaporu_Nakit.php";
    window.location.href = "finansuzmaniCSVRaporu_Kredi-Karti.php";
    //window.location.href = "index.php";
}
General Grievance
  • 4,555
  • 31
  • 31
  • 45
Dauezevy
  • 1,012
  • 4
  • 22
  • 46

1 Answers1

2

Use window.open

like this:

window.open('http://example.com/', '_blank');

Note: user must allow pop-ups

Rudie Visser
  • 570
  • 6
  • 23