Hi!<BR><BR>After user logs to manage his account in the web a new chat window is opened.<BR> When The user click on the [x]-close button on the parent (main) window ,I want to close him a chat window also.<BR>I think about redefine unload method in main window, send to chat a simple info to close itself ,but I don&#039t know how the syntax on unload method works . notice : a main page has frames ,I don&#039t know where to write unload function . <BR>unload="close_chat_window();"