打开者页面:(index.html)
<script type="text/javascript" > function OpenDialog() { showModalDialog("dialog.html",window,"dialogWidth=700px;dialogHeight=400px;"); } function Changing() { document.getElementById("god").value="能打开?"; } </script>
<input type="button" id="god" value="打开" οnclick="OpenDialog();" >
dialog.html 页面:
<iframe name="god" src="oprater.html" frameborder="0" height="400px" width="600px"></iframe>
oprater.html框架内的页面:
<script type="text/javascript" > function grandParent() { parent.window.dialogArguments.Changing(); } </script>
<input type="button" value="换原来的值" οnclick="grandParent();" >
转载于:https://www.cnblogs.com/binaryworms/archive/2010/04/07/1706481.html
相关资源:DirectX修复工具V4.0增强版