Click to See Complete Forum and Search --> : close subwindow doesn't work on IE6.0


wheaty
08-05-2003, 11:44 PM
Hi,
I have a main window that calls a function to pop up
subwindows using javascript window.open()
whenever user clicks on certain buttons.
There's another javascript function that keeps a cookie list of the
subwindow names that I open and it'll add or delete from the list
based on user selection. Anyway, I
want to close all the subwindows
on the list when user logs out from the main window using window.close().
This all works fine on Netscape 4.7, 7.0 and Mozilla but failed on IE6.0.
I put an alert in the close function and on IE the alert never pops up
when user log out but instead it pops up when the user logs back in
next time. Is this an IE bug? Any workaround? or am I doing
something wrong? I appreciate any
help. Thanks. -wheat

zachzach
09-15-2003, 04:26 PM
post the script
in code block ypou know the [ code and the [ /code] things

David Harrison
09-15-2003, 04:49 PM
Could you try running the script from the body like this:

<body onunload="a_function();">

wheaty
09-16-2003, 12:22 PM
I've found the solution. I'm setting
the cookie string with just name,
value and expiration time. After I added
the cookie string with path set to "/",
IE is able to get the cookie and close
the popup without any problem.

David Harrison
09-17-2003, 05:11 AM
I'm happy that you've solved your problem.