A
Andrew Poulos
I have a page with one or more IFRAMEs on it. When the user clicks an
element in the page, that's in the IFRAME, it triggers a function in the
parent page.
How can I tell which IFRAME's content triggered the function without
putting page specific parameters? For example, I've tried
window.parent.fHighlight(window);
in the IFRAME and this in the parent page
fHighlight = function(doc) {
var allIFm= document.getElementsByTagName("iframe");
for (var i = 0; i<allIFm.length; i++) {
alert(allIFm == con);
}
};
but it never alerts as TRUE.
Andrew Poulos
element in the page, that's in the IFRAME, it triggers a function in the
parent page.
How can I tell which IFRAME's content triggered the function without
putting page specific parameters? For example, I've tried
window.parent.fHighlight(window);
in the IFRAME and this in the parent page
fHighlight = function(doc) {
var allIFm= document.getElementsByTagName("iframe");
for (var i = 0; i<allIFm.length; i++) {
alert(allIFm == con);
}
};
but it never alerts as TRUE.
Andrew Poulos