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>"
}
}
Try this, it works for me:
formatters: {
"link": function(column, row) {
return "<a target='_blank' href='download.php?FID=" + row.fileID + "'> Download </a>";
}
}