I just have a problem with my project. I have created three columns with xml, json and csv descriptions, and below each of them there is a button which is supposed to load the data from local storage. The thing is, the following code works as expected in .xml and .json file (everything the same, just different url), but with .csv the browser starts downloading the file instead of opening it in the new window.
<div class="card" style="width: 100%;">
<img class="card-img-top" src="./assets/CSV.png" alt="csv-logo">
<div class="card-body">
<h2 class="card-title text-danger">CSV</h2>
<p class="card-text new-font">Coma Separated Values Description</p>
<a href="./data/MOCK_DATA.csv" target="_blank">
<button class="btn btn-dark py-3 px-4" type="button">
<span class="button-text">Load data</span>
</button>
</a>
</div>
</div>
Do you guys have any ideas how to fix it? Or maybe it's natural browser behaviour, so in this case how to change it?