Call an anchor tag via javascript
<p>I am using thick box 3.1 to load a pop up. It working well by using in the following way:</p>

<pre><code>&lt;a href="filename.php" class="thickbox"&gt; TEST &lt;/a&gt;
</code></pre>

<p>If we click on the TEST now then the popup is working well and good.</p>

<p>Now my prob is: I need to call this popup in form load using JavaScript.</p>

<p>I do something like below:</p>

<pre><code>&lt;script type="text/javascript"&gt;

window.location.href = "filename.php"    

&lt;/script&gt;
</code></pre>

<p>it's just redirecting to that particular file. But not showing in the pop up.</p>

<p>What is the possible way?</p>

<p>thanks in advance</p>
