hi
i make a chat script very simple and i wanna that if the sender send the message the chat window for the receiver open automatically.the system actually is that :if a user is online he saw all member online and he have to clic a in a user online but the chat window open only in the part of the receiver so sender and receiver must open their window.and to open the window i use this code in the file online :
<a href="javascript:void(0)" onclick="window.open('../test/discuss.php?rec=<?=$row_online['mid']?>',<?=$row_online['mid']?>,
'height=500,width=455,status=yes,toolbar=no,menuba r=no,location=no')">
<img src="http://bytes.com/submit/includes/photo/<?=$row_online['Photo']?>" width="35" height="35" border="0"
title="<?=$row_online['firstname']?> <?=$row_online['lastname']?>" /></a>
these code is between the while loop
thanks for your help