window_onunlaod

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ScripterSam
    New Member
    • Oct 2007
    • 16

    #1

    window_onunlaod

    Can you explain the window_onunload function ..?

    I need to call some function when the user closed my pop window that was opened up using window.open().. .
    Thanks in advance...
  • acoder
    Recognized Expert MVP
    • Nov 2006
    • 16032

    #2
    See this link. What part do you not understand?

    Comment

    • ScripterSam
      New Member
      • Oct 2007
      • 16

      #3
      Originally posted by acoder
      See this link. What part do you not understand?
      Ya I have used the code in the same way but the function which i have called from body onunload tag, is working on pressing the close button. But if I call the same function from any other function then it is working fine...

      Comment

      • acoder
        Recognized Expert MVP
        • Nov 2006
        • 16032

        #4
        Originally posted by ScripterSam
        Ya I have used the code in the same way but the function which i have called from body onunload tag, is working on pressing the close button. But if I call the same function from any other function then it is working fine...
        Can you show the code for the function?

        Comment

        Working...