...

View Full Version : javascript - opening a window



jrottman
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!

Jason


<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;">";

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

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



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum