如何在弹出的网页对话框中刷新父窗口啊 例如:父窗口的叶面叫 Parent.html你在弹出的窗口的响应事件中写window.opener.location = "Parent.html";即可! 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 大哥哥们哟 是网页对话框啊 不是 window.open 啊 parent.htm:<script language="JavaScript"><!--alert("页面被加载");showModalDialog("aa.htm", window)//--></script>aa.htm:<script language="JavaScript"><!--var w;if (window.dialogArguments != null)w = window.dialogArguments;//--></script><input type=button value=reload onclick="w.location.reload()"> if (window.dialogArguments != null)请问这一句是启什么作用呢?谢 判断 showModalDialog 的传入参数是否为空 不好意思,梅花大姐。(你是正确的)补充一点if (window.dialogArguments != null)if (null != window.dialogArguments && null!=window.dialogArguments.location)加以判断,万一有一个页面也showModalDialog("aa.htm",anotherObject)再w.location.reload()就问题了 啊真笨啊 用到了 window 传递参数就没想到 可以这样用 嘿嘿 谢谢咯 结贴 javascript怎么把二进制数据用<img>标签呈现到页面中? 用图片按钮提交其他表单 document.write拒绝访问?? 求 惠普网站的效果~~~ 谢谢谢谢 要急疯了,大侠救我! 求教:如何将网页自动加入到收藏夹中? 如何实现下拉列表的增删 关于区别鼠标调整左右上下表格宽度的问题(很难) 如果简单地问,就是如何取得img的宽度和高度? 问一个外行问题, 是什么东西哦?有什么用? 什么代码使隐藏的文本框和按钮显现 如何将我的网页url前的Internet Explorer的图标换成我自己的图标?
<script language="JavaScript">
<!--
alert("页面被加载");
showModalDialog("aa.htm", window)
//-->
</script>aa.htm:
<script language="JavaScript">
<!--
var w;
if (window.dialogArguments != null)
w = window.dialogArguments;
//-->
</script>
<input type=button value=reload onclick="w.location.reload()">
请问这一句是启什么作用呢?谢
补充一点if (window.dialogArguments != null)
if (null != window.dialogArguments && null!=window.dialogArguments.location)
加以判断,万一有一个页面也showModalDialog("aa.htm",anotherObject)
再w.location.reload()就问题了