After clicking a link, open new URL and automatically *click* on tab link inside that page

Is it possible to implement this behavior:

I have a HTML link on one page, and after a user clicks on it, it goes to another page which has several tabs on it. Upon clicking on one of those tabs, it triggers an AJAX post call which populates and displays content for that tab.

Read More

I would like that when a user clicks a link on the previous page, it takes him to another page and automatically clicks a specific tab so it triggers an ajax call which displays the content for that tab.

This site is a WordPress site, if that information helps at all.

Related posts

Leave a Reply

2 comments

  1. On the ‘from’ page you can have links such as

     <a href="targetpage.html#customHash">Click Me</a>
    

    You can set an onpage load function to load and use a trigger like this

     if(window.location.hash === "#customHash"){
        //my custom tab loader
     }