Open link in a new tab

From semantic-mediawiki.org

I did some tests using the extension but with no success. I tried also this snippet source:

$( function () {
     $( '#mw-content-text' ).on( 'click', '.srf-datatables > a', function () {
       var otherWindow = window.open();
       otherWindow.opener = null;
       otherWindow.location = this;
        return false;
  } );
} );

It seems to work better (using classes as attributes in <span>); anyway using srf-datatables (and also the newer smw-datatable) nothing changes, links are always open in the same tab.
I don't know if I am doing something wrong or simply this cannot be achieved.
Thanks for your help anyway!
Lorenzo

12:53, 4 February 2020