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 3 of 3
  1. #1
    New to the CF scene
    Join Date
    Jun 2003
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    How do I open three separate new windows?

    Hi, this is my first posting...

    I would like to open three different windows with
    different sizes, but all the links always open to only
    one window....the copyright window.

    the code I am using in my last link is the following:

    <Script Language="JavaScript">
    <!-- Hide from old browsers
    function openwindowlink() {newwin = window.open("http://www.promotion-des-sites-internet.com/copyright.html","windowname",
    "height=200,width=700,scrollbars,resizable");("http://www.promotion-des-sites-internet.com/trousse_marketing_internet.html","windowname",
    "height=420,width=700,scrollbars,resizable");("http://www.promotion-des-sites-internet.com/telechargement.html","windowname",
    "height=420,width=700,scrollbars,resizable")}
    // end hiding --></Script>
    <a href="JavaScript: openwindowlink()">Copyright &copy;</a>

    On the other links, I have tried to rotate the order of the
    functions in the script, but i continue to open only the copyright window.

    What do I need to do so that I can open the right window for
    each link.

    Thank you,
    Luis

  • #2
    Regular Coder
    Join Date
    Jul 2002
    Posts
    698
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Like This
    Code:
    <Script Language="JavaScript">
      <!-- Hide from old browsers
      function openwindowlink()
    	{
    	  window.open("http://www.promotion-des-sites-internet.com/copyright.html","","height=200,width=700,scrollbars,resizable");
        window.open("http://www.promotion-des-sites-internet.com/trousse_marketing_internet.html","","height=420,width=700,scrollbars,resizable");
       	window.open("http://www.promotion-des-sites-internet.com/telechargement.html","","height=420,width=700,scrollbars,resizable")
    	}
    // end hiding -->
    </Script>
    <a href="JavaScript: openwindowlink()">Copyright ©</a>

  • #3
    Senior Coder
    Join Date
    Apr 2003
    Location
    Canada
    Posts
    1,063
    Thanks
    2
    Thanked 0 Times in 0 Posts
    I think the problem is: By naming all the windows 'windowname', once there IS a window called 'windowname' (The first window opened), the two other windows open IN 'windowname'.
    You have to name the windows differently (Or not name them at all)
    Shawn


  •  

    Posting Permissions

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