yznf
09-02-2008, 11:00 PM
Hi,
I have a popup window that I can't seem to get closed with a button.
The page is opened from within a page that consists of 3 frames.
The popup window is opened from a frame with frame name "framePage2" within an asp page called NarrFoot.asp.
First, a window.open is used to open the frameset page.
var objwindow = window.open ("narrsummnotepadframeset.asp?associd=" + associd + "&narrativepartnerid=" + partnerid , "MySummary", strfeatures);
Then, the frameset page opens the actual frame, framePage2:
<FRAME NAME="framePage2" SRC="narrsummnotepad.asp?associd=<%=request("associd")%>&narrativepartnerid=<%=narrativepartnerid%>" noresize>
The page narrsummnotepad.asp is the actual popup that I can't seem to get closed. Is there something special I would need to do because of it being opened from a parent page?
I've tried using something like:
<input type='button' Name=btnCancel value='Close this Window'>
function btnCancel_onClick()
{
window.opener = top
window.close()
}
end function
and several other ways, but I can't seem to get the window to close. Could someone give me a hand?
Thanks!
I have a popup window that I can't seem to get closed with a button.
The page is opened from within a page that consists of 3 frames.
The popup window is opened from a frame with frame name "framePage2" within an asp page called NarrFoot.asp.
First, a window.open is used to open the frameset page.
var objwindow = window.open ("narrsummnotepadframeset.asp?associd=" + associd + "&narrativepartnerid=" + partnerid , "MySummary", strfeatures);
Then, the frameset page opens the actual frame, framePage2:
<FRAME NAME="framePage2" SRC="narrsummnotepad.asp?associd=<%=request("associd")%>&narrativepartnerid=<%=narrativepartnerid%>" noresize>
The page narrsummnotepad.asp is the actual popup that I can't seem to get closed. Is there something special I would need to do because of it being opened from a parent page?
I've tried using something like:
<input type='button' Name=btnCancel value='Close this Window'>
function btnCancel_onClick()
{
window.opener = top
window.close()
}
end function
and several other ways, but I can't seem to get the window to close. Could someone give me a hand?
Thanks!