Question : Multiple Pop Up Windows

I have an application that pops up a new window when someone wants to compose a new email:

$rand=time();
echo '<a href="#" onclick="window.open(\'mail_compose.php?pid=' . $pop . '\', \'windowname' . $rand . '\', \'width=900, height=600, left=100, top=100\'); return false;">Click here</a>';

How could I modify this code so that multiple windows can open at the same time.  For instance compose an email to 2 people at the same time.  I can't figure out how to have 2 popups open at the same time.

Answer : Multiple Pop Up Windows

Hi, if the above code don't work for you
Just try no setting name to the window popup

echo '<a href="#" onclick="window.open(\'mail_compose.php?pid=' . $pop . '\', \'\', \'width=900, height=600, left=100, top=100\'); return false;">Click here</a>';

With this, the browser open as many windows as you want

Itested it on firefox 3.6.8 and IE 8
Random Solutions  
 
programming4us programming4us