hi *, how to know user close the "last one window" ? for example : if user open 3 windows , when he close any one of the windows , can pop-up the msg "you close the window "first"" , then when user close the second window ,can pop-up the msg "you close the window "second"" too,then when user close the last one window ,pop-up the msg too. actually,i have create a function , but i want to active the function when user close the last one windw . anyone can help me ?