I have several ifrmaes that call parent's function from time to time. How can I know which frame called parent?
Asked
Active
Viewed 146 times
-1
-
I hope this topic may helps you: http://stackoverflow.com/questions/48239/getting-the-id-of-the-element-that-fired-an-event-using-jquery – naota May 27 '12 at 15:08
1 Answers
0
Finding out which function is calling yours can still be done with the arguments.callee
, but that won't work here.
In order to find out you have to tag your iframes and pass that tag along with the function call.

Ja͢ck
- 170,779
- 38
- 263
- 309