Active tab on page load with url
<p>I have three links</p>

<pre><code>&lt;a href="index.php?page=tabs"&gt;Level&lt;/a&gt;
&lt;a href="index.php?page=tabs"&gt;Function&lt;/a&gt;
&lt;a href="index.php?page=tabs"&gt;Programs&lt;/a&gt;    
</code></pre>

<p>I want to call this tab active on page load</p>

<p>php url is like this </p>

<p><code>index.php?page=tabs</code> (for open the page with these all tabs)</p>

<pre><code>&lt;ul class="nav nav-tabs faq-cat-tabs"&gt;
   &lt;li&gt;&lt;a href="#faq-cat-1" class="btn btn-info" data-toggle="tab"&gt;&lt;i class="fa fa-shield"&gt;&lt;/i&gt; Levels&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt; &lt;a href="#faq-cat-3" class="btn btn-info" data-toggle="tab"&gt;&lt;i class="fa fa-sitemap"&gt;&lt;/i&gt; Functions&lt;/a&gt;&lt;/li&gt;
   &lt;li&gt; &lt;a href="#faq-cat-2" class="btn btn-info" data-toggle="tab"&gt;&lt;i class="fa fa-puzzle-piece"&gt;&lt;/i&gt; Programme Calander&lt;/a&gt;&lt;/li&gt;
&lt;/ul&gt;
</code></pre>

<p>On each click I want to active different tabs active in previous list</p>

<p>My php page for url is like this </p>

<pre><code>&lt;?php include 'Header.php';

if(isset($_GET['page'])){
    $page = trim($_GET['page']);
    include $page.'.php';

}else{
    include 'Home.php';
}

?&gt;
&lt;?php include 'Footer.php'; ?&gt;
</code></pre>

<p>In short want to open tabs on page load
And I have tried <code>index.php?page=level#faq-cat-1</code> and so on but it won't work.</p>