Multiple Popup windows

Giganews Newsgroups
Subject: Multiple Popup windows
Posted by:  Willem van Isselmuden (isselmud…@hotmail.com)
Date: Tue, 2 Sep 2003

Hello,

I've a problem I hava a page with different popup windows,
when I hit a link the first one pops up and with the first open i would like
to hit the second link in the parent page so the second links pops up a
window in
the first popup. The way I have it now is working but with each link the
size
of the popup window should be different but that doesnt happen how can I
solve that problem?

this is my code:

function NewWindow(mypage, myname, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops =
'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',r
esizable'
win = window.open(mypage, myname, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

the first link:
    <a href="#"
onClick="NewWindow('info_banketquiz.html','name','488','255');return
false;">info</a>

the second link:
    <a href="#"
onClick="NewWindow('info_consumenten.html','name','488','405');return
false;">info</a>

I hope that somebody can help me

Greetings Willem

Replies