Hi i have the following code as follows
function openWindow() {
window.open('confirm.cfm?fname=#url.fname#&lname=#url.lname#&pno=#url.pno
#&appid=#url.appid#&subid=#url.subid#&createdfname=#url.createdfname#
&createdlname=#url.createdlname#&salesfname=#url.salesfname#&saleslname=
#url.saleslname#','TheNewpop','toolbar=1,location=1,directories=1,status=
1,menubar=1,scrollbars=1,resizable=1');
top.opener = self;
top.window.close();
}
basicaly is there a way to make sure that the window.open runs fully to make sure that the new window is opened before the parent window is closed? Its just that this works most of the time but in some cases the window seems to have closed before the new window can be opened.
Thanks
function openWindow() {
window.open('confirm.cfm?fname=#url.fname#&lname=#url.lname#&pno=#url.pno
#&appid=#url.appid#&subid=#url.subid#&createdfname=#url.createdfname#
&createdlname=#url.createdlname#&salesfname=#url.salesfname#&saleslname=
#url.saleslname#','TheNewpop','toolbar=1,location=1,directories=1,status=
1,menubar=1,scrollbars=1,resizable=1');
top.opener = self;
top.window.close();
}
basicaly is there a way to make sure that the window.open runs fully to make sure that the new window is opened before the parent window is closed? Its just that this works most of the time but in some cases the window seems to have closed before the new window can be opened.
Thanks