Yes it is possible with javascript.
Inserting links between table and tr is not syntax correct, so the route is even javascript.
You can add an event handler that looks for clicks within the table rows. When a click happens, it will fetch the link from that line and open it.
Example with jQuery:
var linhaTabela = $('table tr');
linhaTabela.on('click', function (event) {
var link = $(this).find('a').attr('href')
link && window.location = link;
});
If there is no link within the line as I mentioned in the example above, you can assign via your php the link information in a data-
field, there in the table row.
So my example is
html
<tr data-href="http://www.google.com">
javascript
var linhaTabela = $('table tr');
linhaTabela.on('click', function (event) {
var link = $(this).data('href');
link && window.location = link;
});