Call an anchor tag via javascript

Posted by Fero on Stack Overflow See other posts from Stack Overflow or by Fero
Published on 2010-04-15T11:46:36Z Indexed on 2010/04/15 11:53 UTC
Read the original article Hit count: 453

Filed under:
|
|

Hi all,

I am using thick box 3.1 to load a pop up. It working well by using in the following way:

<a href="filename.php" class="thickbox"> TEST </a>

If we click on the TEST now then the popup is working well and good.

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

I do something like below:

<script type="text/javascript">

window.location.href = "filename.php"    

</script>

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

What is the possible way?

thanks in advance

© Stack Overflow or respective owner

Related posts about php

Related posts about JavaScript