Differentiate between window close and window refresh

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • sanjeevcis
    New Member
    • May 2007
    • 8

    Differentiate between window close and window refresh

    Hi Everybody,

    Is there any way to differentiate window closing and window refreshing.

    Actually I need the code regarding this. I want to get the Popup when i close the perticular window but not when i refresh that window. I used OnUnload event in the body tags to open the Popup when the window is closed.But it is also executing when i refresh the window also!!!!.Please help me out if anybody does know the code for my problem
    Thank You.
  • shoonya
    New Member
    • May 2007
    • 160

    #2
    Originally posted by sanjeevcis
    Hi Everybody,

    Is there any way to differentiate window closing and window refreshing.

    Actually I need the code regarding this. I want to get the Popup when i close the perticular window but not when i refresh that window. I used OnUnload event in the body tags to open the Popup when the window is closed.But it is also executing when i refresh the window also!!!!.Please help me out if anybody does know the code for my problem
    Thank You.
    can cookies be useful ???
    hope there is a better solution

    shoonya

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      Changed thread title.

      Comment

      Working...