0

I have used a bootgrid based database with links and is working fine. But my problem is that whenever I click the link it opens in the same window. How can I force the browser to open the link in a new tab?

I tried using the target="_blank" but it's not working. Here is the formatter:

formatters: {
            "link": function(column, row) {
                        return "<a href=\"download.php?FID="+row.fileID+"\"> Download </a>"
            }
}
marc_s
  • 732,580
  • 175
  • 1,330
  • 1,459

1 Answers1

1

Try this, it works for me:

formatters: {
  "link": function(column, row) {
    return "<a target='_blank' href='download.php?FID=" + row.fileID + "'> Download </a>";
   }
}
Alex
  • 230
  • 1
  • 2
  • 19