I have a HTML page that can be opened in a different iframe
depending on some conditions. In page execution I need to know in what iframe
the page is running. How can I do this?
/* Page A: */
if (openinA)
$("#frameA").attr("src", "pageb.php");
else
$("#frameB").attr("src", "pageb.php");
/* Page B: */
// Which IFRAME i am?