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
    Oct 2006
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Pop Up window help

    Hi all, im having a problem. I have two diffrent links that i want to open in two popup windows one a normal window size popup and the secound 100 by 200. Is this at all possible? Here is what i have so far

    <code><script type="text/javascript">

    function twoWindows (one,two) {
    window.open(one);
    window.open(two);
    }
    </code>

    <code><body>
    <a href="http://nucrisp.com/home.html" onclick="twoWindows('http://www.apparelcatalog.net/asi/','http://nucrisp.com/Untitled.html'); return false">hi</a>
    </body></code>

  • #2
    Senior Coder
    Join Date
    Aug 2002
    Location
    UK
    Posts
    2,789
    Thanks
    2
    Thanked 14 Times in 14 Posts
    You could do it this way


    PHP Code:
    <script type="text/javascript">
    <!--
    function 
    twoWindows(url){
    var 
    newWin=open(url,'win1','left=200,top=200,width=100,height=200')
    }
    // -->
    </script>

    <a href="http://nucrisp.com/home.html" target="_blank" onclick="twoWindows('http://www.apparelcatalog.net/asi/')">hi</a> 
    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.


  •  

    Posting Permissions

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