i started to use onunload="displayContent00()" but than i realized that it not shoots only when the user click on X but it shoots every time page being refreshed or skiping to another page too... can someone help me solve this one? i need something that shoots only when the window being closed with the X
I don't think that there's an event handler that will capture just closing via the "X". I looked through my reference book and didn't find one. Generally you can't get such granular control using JavaScript.