I created a page that displays database data in a table, generated through the dataTables (Jquery) plugin. It works as follows: when the user clicks on the table row, it is redirected to an edit page.
The line of code that does this redirect is:
$("#tabela-estacoes td").click(function() {
window.location = "editar-estacoes-trabalho.php?id=" + $(this).parent("tr").attr('identifier');
});
My question is this: how do I do to instead of redirect the page, open that data in a new tab?