发布于 2013-02-20 07:03:46
很好,您的iframe和页面位于同一个域中,这意味着您可以在javascript中的父/子之间来回调用。
我建议在父(customer.jsp)中设置javascript函数。
function drawBox() {
//handle drawing the box here however that has to happen
}在menuBanner.jsp中,更新按钮以触发"parent.drawBox()“
onclick="parent.drawBox()"下面是此工作的一个示例:http://mathforum.org/~amir/share/stack/outer.html
https://stackoverflow.com/questions/14973919
复制相似问题