there.
Let’s say that I don’t know how many child window would be open by window.showModalDialog.
If it’s only 1 depth between child and parent, it would be easy to call parent’s function using javascript.
But I have to open a child window and from that child window to another child window, and another, and another.
I can’t say how many depth.
Now, from the last child window, how can I call the root parent’s function?
Anyone has any idea?
“Root Parent Window” -> child window -> child window -> child window ……..n-th child window
I suppose we are talking about recursion here.
If we know function name that must be called from root window then we may do the following:
this script must be in child windows and from any you can call