I have a page that loads few iframe's within itself. Each iframe can invoke parent function. For example like this:
$(document).ready(function() {
parent.test();
}
I want to be able to find which iframe invoked test function. I've tried to play with calleer.called properties but the best I could get is the function that calling test(). In my case it was $(document).ready function. Is there a way to get the name of iframe (or it's html name) which calling the function?