How to trigger a link in a tab of a table?

Solution:1

A url parameter may get the job done for you. From the link you want to open you could do something like: example-link.com?showTable=True.

Then look for that url parameter on the new page and only open if it’s there and True.

example-link.com#rebozo?showTable=True

const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const product = urlParams.get('showTable')
if (showTable && showTable === 'True') {
    // code to open the table
}

Solution:2

if (window.location.hash == '#myHash') {
    $(document).ready(function(){
        $('#myID').click(function(){
            console.log('clicked');
           });
            setTimeout(function(){
               $('.myClass > a').trigger('click');
           }, 2000);
           console.log('triggered');
       });
};