D
Donkey Cart Racer
Hi,
I have a page - page1 which opens a window1 where users can look at
tasks, in window1 users can click and open window2 where they can
create new tasks
I want to refresh window1 when window2 closes
and refresh page1 when window 1 closes
Currently i am calling a javascript function on unload which refreshes
window.opener.location
the problem i am having is that when window2 closes it unloads itself
and calls refresh on window1 which unloads itself on refresh and hence
refreshes page1
I do not want to refresh page1 when window2 closes only if window1
closes. I hope this makes sense
Is there anyway i can differenciate between unload and a page close?
because unload gets called on refresh also, and i would like to only
take actions when a page closes not wen it unloads
thanks
B
I have a page - page1 which opens a window1 where users can look at
tasks, in window1 users can click and open window2 where they can
create new tasks
I want to refresh window1 when window2 closes
and refresh page1 when window 1 closes
Currently i am calling a javascript function on unload which refreshes
window.opener.location
the problem i am having is that when window2 closes it unloads itself
and calls refresh on window1 which unloads itself on refresh and hence
refreshes page1
I do not want to refresh page1 when window2 closes only if window1
closes. I hope this makes sense
Is there anyway i can differenciate between unload and a page close?
because unload gets called on refresh also, and i would like to only
take actions when a page closes not wen it unloads
thanks
B