View Full Version : javascript - opening a window

06-14-2004, 02:58 AM
I am trying to use a javascript to open a new window when you click the following link. However, if you click the link twice, the new window just loads inside of the previously loaded window. I need it so that every time you click the link, a new window opens, click it 5 times, having 5 windows open. Thank you for your help!


<a href='#'onClick="MyWindow1=window.open('livechat.php','MyWindow1','toolbar=0,location=0,directories=0,status=0,menuba r=0,scrollbars=0,resizable=1,width=515,height=310,left=0,top=0'); return false;">";

06-14-2004, 06:30 AM
Specify an empty string or _blank in the target parameter

window.open('livechat.php', '_blank', '...');