The code I have so far looks like this:
<a href="index.php?cat=$row[name]" onClick="java script: content.location.href = 'disp_cat.php?cat=$row[name]'">$row[name]</a>
Is this possible? As you can see, I am trying to send a variable to index.php (main Page) and disp_cat.php (iframe) in one click. $row[name] gets it's value from a database.

My problem is with the javascript. What do I need to do in order to pass a variable to an iframe with Javascript? What I have written above doesn't work.

(I'm new to Javascript, I am a PHP programmer)

Thanks for any help!