Web Analytics Made Easy -
StatCounter Pop Up window help - CodingForum

Announcement

Collapse
No announcement yet.

Pop Up window help

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new 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
    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.

    Comment

    Working...
    X