I have a site that make use of popup windows (on demand, i.e. when one clicks
on a link) to open up comments to texts in and such. It works great, but I have
a problem.
I have a small javascript that I use when I want to open a link in the "main"
window which looks like this:
function quicklink(what){
parent.opener.location=what;
}
This one works great, but sometimes, my popup window opens a popup window (may
sound weird to do, but there are occasions where it's quite logical) and using
quicklink() in this third window will open the link the the second, popup
window when I really would want to open it in the first, main window.
Is there are way to handle this, regardless of number of levels of opened
windows?
--
Sandman[.net]