To answer your questions:
1) Try changing your original close window code to the following:
Code:
<a href="javascript:parent.comment.close();parent.location.reload()"><b>Close Window</b></a>
2)
I would like a link inside one popup that launches another popup.
To do this, on the main page (not the page inside popupA), define the function that when called will launch the desired popup window (popupB), for example:
Code:
function openwindow(){
var popupB=dhtmlwindow.open("googlebox", "iframe", "http://images.google.com/", "#1: Google Web site", "width=590px,height=350px,resize=1,scrolling=1,center=1", "recal")
}
Then inside the page of popupA, you can invoke openwindow(), defined on the main page to launch popupB, by using the syntax:
Code:
<a href="javascript:parent.openwindow();"><b>Spell Check</b></a>
The keyword "parent" is what lets you navigate back up to the parent (main) window, and access any JavaScript variable/methods contained in it.
3) Hmm as you suspected a DHTML window (unlike a regular window) is part of the page, and cannot persist from one page to another. Anything playing it will get erased as soon as the user hops to another page.
Bookmarks