the browser does not know the difference between new links being loaded, closing the window, or refreshing. Only thing you can try is onbeforeunload.
Joined: Mar 17, 2004
Just musing over my old thread. Yes it can be done. I did it...I kept the windowname in a cookie. The cookie can be expired and recreated every 2 seconds. THe new window opened by the user can then close this window and put focus one the old one.