How to make HTML IFrames talk to each other? So I have 2 Iframes I know and create thare contents. I need to make tham talk one to other - for example one to send XML data to other or just call JS function from it.
+2
A:
This method requires each frame to have these functions.
function acceptXml(xml) {
// Process XML
}
function sendXml(frameName, xml) {
var frame = window.parent.frames[frameName];
frame.acceptXml(xml);
}
ChaosPandion
2009-12-08 01:13:12