Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New to the CF scene
    Join Date
    Jun 2004
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    javascript - opening a window

    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

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

  • #2
    Supreme Master coder! glenngv's Avatar
    Join Date
    Jun 2002
    Location
    Philippines
    Posts
    11,037
    Thanks
    0
    Thanked 250 Times in 246 Posts
    Specify an empty string or _blank in the target parameter

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


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •