0
我的问题是,我想从框架内容更新div
内容(与id="content"
) 从表单提交加载后。Javascript更新来自框架的父级内容
其中表格属性action="test.php"
和target="source"
这是框架名称。
的示例代码是在这里:JSBin
结果从test.php
是这样的:
<script type="text/javascript">
window.parent.top.getElementById('content').innerHtml = "Western";
</script>
它不工作的方式也。 – mentorgashi