Accessing grand parent function when parent window is closed.

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ad08
    New Member
    • May 2009
    • 5

    Accessing grand parent function when parent window is closed.

    Is this possible?

    I am trying to access function from grand parent window (the main window) in my child popup window but the parent window is closed in this case.

    a.jsp --> grand parent window (main browser window)
    b.jsp--> parent window (pop up window)
    c.jsp--> child window (pop up window)

    I need to call a function from a.jsp in c.jsp when b.jsp is closed.

    Thanks
  • ad08
    New Member
    • May 2009
    • 5

    #2
    This is a javascript question. I have javascript functions defined in all jsps.

    Thanks.

    Comment

    • acoder
      Recognized Expert MVP
      • Nov 2006
      • 16032

      #3
      When c.jsp is created, pass the reference of a.jsp via b.jsp, e.g.
      Code:
      var grandParent = parent.parent;

      Comment

      Working...