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 Coder
    Join Date
    Sep 2005
    Location
    Latina (Italy)
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Opening multiple windows

    Hi all!
    I'm trying to create an anchor which opens a new window @ every click for the URI it wants to make the user reach.
    The code I made is this:

    Code:
    function openInNew( href )
    {	newWindow=window.open( href , "UnEMS" , "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
    	newWindow.focus();
    }
    but it makes the anchor open no more than 1 new window, so if I click again on it, it refreshes always the same new window, doesn't create any new.
    How can I modify this behaviour?

    Thanx a lot!!

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    Leave out the window name



    PHP Code:
    function openInNewhref )
    {    
    newWindow=window.openhref "" "screenX=100,screenY=10,height=490,width=740,scrollbars=1" );
        
    newWindow.focus();

    The silent one.

    The most dangerous thing in the world is an idea.
    The most dangerous person in the world is the one with an idea.

  • #3
    New Coder
    Join Date
    Sep 2005
    Location
    Latina (Italy)
    Posts
    73
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank You!!!!!!!!!!!!!!!!!!!!!!


  •  

    Posting Permissions

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